diff --git a/services/web/frontend/js/features/editor-left-menu/hooks/use-user-wide-settings.tsx b/services/web/frontend/js/features/editor-left-menu/hooks/use-user-wide-settings.tsx index 42543cc2fa..c30a65343d 100644 --- a/services/web/frontend/js/features/editor-left-menu/hooks/use-user-wide-settings.tsx +++ b/services/web/frontend/js/features/editor-left-menu/hooks/use-user-wide-settings.tsx @@ -11,6 +11,8 @@ import type { UserSettingsScope } from '../utils/api' export default function useUserWideSettings() { const saveUserSettings = useSaveUserSettings() + + // this may be undefined on test environments const [userSettings] = useScopeValue('settings', true) const setOverallTheme = useSetOverallTheme()