Fix custom app cruch whe no permissions (#3347)
This commit is contained in:
parent
31fcd45fac
commit
183a523e50
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ const AccountPermissions: React.FC<AccountPermissionsProps> = props => {
|
||||||
errorMessage,
|
errorMessage,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const permissions = Object.values(props.permissions).sort(
|
const permissions = Object.values(props?.permissions ?? {}).sort(
|
||||||
byAlphabeticalOrder("name"),
|
byAlphabeticalOrder("name"),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue