Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: one-way sync for currentTabId (#13658)

Liu Ji067543ff72a5
diff --git a/frontend/src/store/modules/sqlEditor/tab.ts b/frontend/src/store/modules/sqlEditor/tab.ts
index 5238dcad86..9cb868f0db 100644
--- a/frontend/src/store/modules/sqlEditor/tab.ts
+++ b/frontend/src/store/modules/sqlEditor/tab.ts
@@ -97,7 +97,9 @@ export const useSQLEditorTabStore = defineStore("sqlEditorTab", () => {
);
const currentTabIdMapByProject = useDynamicLocalStorage<
Record<string, string | undefined>
- >(currentTabIdKey, {});
+ >(currentTabIdKey, {}, localStorage, {
+ listenToStorageChanges: false,
+ });
const initializedProjects = new Set<string>();
const maybeInitProject = (project: string) => {