Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 69e47b0

Browse files
committed
fix(action): Added check for primary actions
1 parent 40537f1 commit 69e47b0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/app/action/action.component.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@ export class ActionComponent implements DoCheck, OnInit {
8686
}
8787
// lodash has issues cloning primaryActions.template with the list component
8888
let found = false;
89-
this.config.primaryActions.forEach((action) => {
90-
if (has(action, 'template')) {
91-
found = true;
92-
}
93-
});
89+
if (this.config.primaryActions !== undefined) {
90+
this.config.primaryActions.forEach((action) => {
91+
if (has(action, 'template')) {
92+
found = true;
93+
}
94+
});
95+
}
9496
if (!found) {
9597
this.prevConfig = cloneDeep(this.config);
9698
}

0 commit comments

Comments
 (0)