diff --git a/js/apps/admin-ui/src/clients/authorization/ResourcesPolicySelect.tsx b/js/apps/admin-ui/src/clients/authorization/ResourcesPolicySelect.tsx index f2fe6ad395..e6dcc30bdb 100644 --- a/js/apps/admin-ui/src/clients/authorization/ResourcesPolicySelect.tsx +++ b/js/apps/admin-ui/src/clients/authorization/ResourcesPolicySelect.tsx @@ -181,7 +181,9 @@ export const ResourcesPolicySelect = ({ {field.value?.map((permissionId) => { const item = items.find( (permission) => permission.id === permissionId, - )!; + ); + + if (!item) return; const route = to(item); return (