Skip to content

Commit

Permalink
fix(forms): Update the typed forms migration schematic to find all fi…
Browse files Browse the repository at this point in the history
…les. (#44881)

We were breaking out of the loop that walks the source tree due to an incorrect return.

PR Close #44881
  • Loading branch information
dylhunn authored and thePunderWoman committed Jan 28, 2022
1 parent 9229511 commit deb9531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/schematics/migrations/typed-forms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function runTypedFormsMigration(tree: Tree, tsconfigPath: string, basePath: stri
const formBuilderImport = getFormBuilderImport(sourceFile);

// If no relevant classes are imported, we can exit early.
if (controlClassImports.length === 0 && formBuilderImport === null) return;
if (controlClassImports.length === 0 && formBuilderImport === null) continue;

const update = tree.beginUpdate(relative(basePath, sourceFile.fileName));

Expand Down

0 comments on commit deb9531

Please sign in to comment.