From 70177deb4934923583039d98939b012d34a3f5fa 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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/stores/sync_config.js b/src/stores/sync_config.js index 8d07fb9c9..c87e0bece 100644 --- a/src/stores/sync_config.js +++ b/src/stores/sync_config.js @@ -598,19 +598,19 @@ export const useSyncConfigStore = defineStore('sync_config', { } console.log('======') - console.log('CACHE', cache.prefsStorage.simple.conversationDisplay) - console.log('LIVE', live.prefsStorage.simple.conversationDisplay) - if (cache._timestamp > live._timestamp) { + 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) { + } else if (cache?._timestamp === live?._timestamp) { console.log('C = L') } else { console.log('C < L') } 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