Skip to content

Commit

Permalink
fix: possible undefined logic errors are mitigated
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeyyeKurtulus committed May 6, 2024
1 parent abde04d commit 7d1d044
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 7d1d044

Please sign in to comment.