diff --git a/libs/remix-ui/plugin-manager/src/lib/components/permissionsSettings.tsx b/libs/remix-ui/plugin-manager/src/lib/components/permissionsSettings.tsx index cf6b99cd97..692c18f76a 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/permissionsSettings.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/permissionsSettings.tsx @@ -18,7 +18,7 @@ function PermisssionsSettings ({ pluginSettings }: PermissionSettingsProps) { const [permissions, setPermissions] = useLocalStorage('plugins/permissions', {} as PluginPermissions) const closeModal = () => setModalVisibility(true) const openModal = () => { - const currentValue = JSON.parse(window.localStorage.getItem('plugins/permissions')) + const currentValue = JSON.parse(window.localStorage.getItem('plugins/permissions') || '{}') setPermissions(currentValue) setModalVisibility(!modalVisibility) }