From 11ce0a8e3ea1cab38918edce8401fe0107347dc1 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 20 Feb 2026 11:14:27 +0200 Subject: [PATCH] do not fail on debug --- src/stores/sync_config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stores/sync_config.js b/src/stores/sync_config.js index 8d07fb9c9..8af132e14 100644 --- a/src/stores/sync_config.js +++ b/src/stores/sync_config.js @@ -598,8 +598,8 @@ export const useSyncConfigStore = defineStore('sync_config', { } console.log('======') - console.log('CACHE', cache.prefsStorage.simple.conversationDisplay) - console.log('LIVE', live.prefsStorage.simple.conversationDisplay) + console.log('CACHE', cache?.prefsStorage?.simple?.conversationDisplay) + console.log('LIVE', live?.prefsStorage?.simple?.conversationDisplay) if (cache._timestamp > live._timestamp) { console.log('C > L') } else if (cache._timestamp === live._timestamp) { @@ -609,8 +609,8 @@ export const useSyncConfigStore = defineStore('sync_config', { } let { recent, stale, needUpload } = _getRecentData(cache, live) console.log('======') - console.log('RECENT', recent.prefsStorage.simple.conversationDisplay) - console.log('STALE', stale.prefsStorage.simple.conversationDisplay) + console.log('RECENT', recent.prefsStorage?.simple?.conversationDisplay) + console.log('STALE', stale?.prefsStorage?.simple?.conversationDisplay) console.log('======') const userNew = userData.created_at > NEW_USER_DATE