Browse Source
Merge pull request #19712 from abpframework/hot-fix-extensible-table-action
Angular (Hot Fix) - Actions Button Error
pull/19714/head
Masum ULU
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
npm/ng-packs/packages/components/extensible/src/lib/components/extensible-table/extensible-table.component.ts
|
|
|
@ -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); |
|
|
|
|