From 5b1536eb3ef3a2bda105411b0ad9c6b71fb7c30f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 24 Feb 2026 20:45:52 +0200 Subject: [PATCH] command to clear journals in case of a leak or development leak --- src/stores/sync_config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/stores/sync_config.js b/src/stores/sync_config.js index 05a47fa64..2551f5a38 100644 --- a/src/stores/sync_config.js +++ b/src/stores/sync_config.js @@ -579,6 +579,12 @@ export const useSyncConfigStore = defineStore('sync_config', { this[k] = blankState[k] }) }, + clearJournals() { + this.prefsStorage._journal = [] + this.cache.prefsStorage._journal = [] + this.raw.prefsStorage._journal = [] + this.pushSyncConfig() + }, setSyncConfig(userData) { const live = userData.storage this.raw = live