From 183a523e50cc9316ed7fbf0f3108a8ab0475929e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chy=C5=82a?= Date: Tue, 14 Mar 2023 09:25:21 +0100 Subject: [PATCH] Fix custom app cruch whe no permissions (#3347) --- src/components/AccountPermissions/AccountPermissions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AccountPermissions/AccountPermissions.tsx b/src/components/AccountPermissions/AccountPermissions.tsx index 04d448262..e2fe4f76d 100644 --- a/src/components/AccountPermissions/AccountPermissions.tsx +++ b/src/components/AccountPermissions/AccountPermissions.tsx @@ -62,7 +62,7 @@ const AccountPermissions: React.FC = props => { errorMessage, } = props; - const permissions = Object.values(props.permissions).sort( + const permissions = Object.values(props?.permissions ?? {}).sort( byAlphabeticalOrder("name"), );