From bb682a6f6e7cb8fe7cdaccb98a324d8dafd29c0f Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Thu, 2 Oct 2025 14:22:34 +0500 Subject: [PATCH] web: reset default notebook & tag feature if applicable (#8628) Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> --- apps/web/src/common/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/web/src/common/index.ts b/apps/web/src/common/index.ts index 4a29ed0f0..1362b3c56 100644 --- a/apps/web/src/common/index.ts +++ b/apps/web/src/common/index.ts @@ -514,7 +514,8 @@ export async function resetFeatures() { "disableTrashCleanup", "syncControls", "fullOfflineMode", - "appLock" + "appLock", + "defaultNotebookAndTag" ]); if (!features.appLock.isAllowed) { await useKeyStore.getState().disable(); @@ -553,4 +554,9 @@ export async function resetFeatures() { if (!features.fullOfflineMode.isAllowed) useSettingStore.getState().toggleFullOfflineMode(false); + + if (!features.defaultNotebookAndTag.isAllowed) { + db.settings.setDefaultNotebook(undefined); + db.settings.setDefaultTag(undefined); + } }