feat(sidebar): decompose tree item runtime

This commit is contained in:
t8y2 committed 2026-07-16 22:52:10 +08:00
1 parent 1688ba74cd
commit 6660957153
38 files changed
+6498 -5294

No files matched your search

+1 -1
View File
@@ -1935,7 +1935,7 @@ export const useConnectionStore = defineStore("connection", () => {
const existing = connections.value[idx].visible_schemas;
let nextSchemas: Record<string, string[]> | undefined;
if (schemaNames) {
nextSchemas = { ...(existing || {}), [database]: schemaNames };
nextSchemas = { ...existing, [database]: schemaNames };
} else if (existing) {
nextSchemas = { ...existing };
delete nextSchemas[database];