Skip to content

Commit a14ac5a

Browse files
committed
fix(plugin): use descendant again instead of child
1 parent 0d7c508 commit a14ac5a

File tree

1 file changed

+1
-1
lines changed
  • libs/plugin/src/generators/init

1 file changed

+1
-1
lines changed

libs/plugin/src/generators/init/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export async function initGenerator(tree: Tree, options: InitGeneratorSchema) {
254254
const componentDecorator = componentDecorators[0];
255255
const componentMetadata = componentDecorator.getArguments()[0] as ObjectLiteralExpression;
256256

257-
const templateUrlMetadata = componentMetadata.getFirstChild((node): node is PropertyAssignment => {
257+
const templateUrlMetadata = componentMetadata.getFirstDescendant((node): node is PropertyAssignment => {
258258
return Node.isPropertyAssignment(node) && node.getName() === 'templateUrl';
259259
});
260260

0 commit comments

Comments
 (0)