Commit 26593d2c authored by Merzough Münker's avatar Merzough Münker
Browse files

fix: throw if form providers can not be resolved

parent 47ff4a0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ export class RxapFormBuilder<Form extends FormDefinition = FormDefinition> {
      if (isDevMode()) {
        console.error(`Could not inject the definition instance. Fallback and call the constructor of the definition class: ${e.message}`);
      }
      form = (new this.definition()) as Form & Record<string, Function>;
      throw e;
    }

    const controls: Record<string, AbstractControl> = {};