Skip to content

Commit

Permalink
Merge pull request #19712 from abpframework/hot-fix-extensible-table-…
Browse files Browse the repository at this point in the history
…action

Angular (Hot Fix) - Actions Button Error
  • Loading branch information
masum-ulu authored May 6, 2024
2 parents abde04d + 8e7bd55 commit 7bdcd03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class ExtensibleTableComponent<R = any> implements OnChanges {
}

hasAvailableActions(index, data): boolean {
const { permission, visible } = this.actionList.get(index).value;
const { permission, visible } = this.actionList.get(index)?.value || {};
let isActionAvailable = this.permissionService.getGrantedPolicy(permission);
if (data && data.record) {
isActionAvailable &&= visible(data);
Expand Down

0 comments on commit 7bdcd03

Please sign in to comment.