We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f0067f commit 35c13a6Copy full SHA for 35c13a6
packages/angular_devkit/schematics/src/tree/action.ts
@@ -32,10 +32,11 @@ export class ActionList implements Iterable<Action> {
32
private _actions: Action[] = [];
33
34
protected _action(action: Partial<Action>) {
35
- this._actions.push(Object.assign({
+ this._actions.push({
36
+ ...action as Action,
37
id: _id++,
- parent: this._actions[this._actions.length - 1] || 0,
38
- }, action) as Action);
+ parent: this._actions[this._actions.length - 1]?.id ?? 0,
39
+ });
40
}
41
42
create(path: Path, content: Buffer) {
0 commit comments