mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix null check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user