diff --git a/src/lib/helpers/studioLayout.ts b/src/lib/helpers/studioLayout.ts index abe9d363a..deed3aac9 100644 --- a/src/lib/helpers/studioLayout.ts +++ b/src/lib/helpers/studioLayout.ts @@ -7,7 +7,7 @@ const userPreferences = () => get(user)?.prefs; export function getChatWidthFromPrefs() { const currentPrefs = userPreferences(); - if ('studioChatWidth' in currentPrefs) { + if (currentPrefs?.studioChatWidth) { if (window) { const maxSize = page.data?.subNavigation ? window.innerWidth - 660