Browse Source
Merge pull request #19714 from abpframework/auto-merge/prerel-8-2/2685
Merge branch dev with prerel-8.2
pull/19729/head
maliming
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); |
|
|
|
|