Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Sep 28, 2024
1 parent 95d87af commit e1fd725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/core/js/src/admin/components/PermissionGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default class PermissionGrid<CustomAttrs extends IPermissionGridAttrs = I
label: app.translator.trans('core.admin.permissions.global_heading'),
render: (item: PermissionGridEntry) => {
if ('setting' in item) {
return item.setting();
return item.setting?.();
} else if ('permission' in item) {
return <PermissionDropdown permission={item.permission} allowGuest={item.allowGuest} />;
}
Expand Down

0 comments on commit e1fd725

Please sign in to comment.