Fix null check

This commit is contained in:
ernstmul
2025-05-01 11:59:40 +02:00
parent 513158e0f0
commit 3a9e96be2d
+1 -1
View File
@@ -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