Skip to content

Commit a7edd57

Browse files
committed
fix(@angular-devkit/schematics): avoid piping input multiple times when calling rules
Fixes: #11267
1 parent c875424 commit a7edd57

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/schematics/src/rules

1 file changed

+1
-1
lines changed

packages/angular_devkit/schematics/src/rules/call.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function callRule(
8484
return observableOf(inputTree);
8585
} else if (typeof result == 'function') {
8686
// This is considered a Rule, chain the rule and return its output.
87-
return callRule(result, input, context);
87+
return callRule(result, observableOf(inputTree), context);
8888
} else if (isObservable(result)) {
8989
// Only return the last Tree, and make sure it's a Tree.
9090
return result.pipe(

0 commit comments

Comments
 (0)