feat(sidebar): decompose tree item runtime
This commit is contained in:
1 parent
1688ba74cd
commit
6660957153
38 files changed
+6498
-5294
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user