Skip to content

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

chore: keep tab status (#13640)

Liu Ji0a3baba9c2ba
diff --git a/frontend/src/components/SchemaEditorLite/Aside/Tree.vue b/frontend/src/components/SchemaEditorLite/Aside/Tree.vue
index 8d0f118041..130dda39b2 100644
--- a/frontend/src/components/SchemaEditorLite/Aside/Tree.vue
+++ b/frontend/src/components/SchemaEditorLite/Aside/Tree.vue
@@ -307,7 +307,7 @@ useEmitteryEventListener(events, "rebuild-tree", (params) => {
debouncedBuildDatabaseTreeData(params.openFirstChild);
});
watch(disableDiffColoring, () =>
- buildDatabaseTreeData(/* openFirstChild */ true)
+ buildDatabaseTreeData(/* !openFirstChild */ false)
);
const tabWatchKey = computed(() => {
diff --git a/frontend/src/components/SchemaEditorLite/algorithm/rebuild.ts b/frontend/src/components/SchemaEditorLite/algorithm/rebuild.ts
index 6128450840..9116a23c98 100644
--- a/frontend/src/components/SchemaEditorLite/algorithm/rebuild.ts
+++ b/frontend/src/components/SchemaEditorLite/algorithm/rebuild.ts
@@ -13,7 +13,7 @@ export const useRebuildMetadataEdit = (context: SchemaEditorContext) => {
database: ComposedDatabase,
source: DatabaseMetadata,
target: DatabaseMetadata,
- resets: RebuildMetadataEditReset[] = ["tabs", "tree"]
+ resets: RebuildMetadataEditReset[] = ["tree"]
) => {
clearEditStatus();
const dm = new DiffMerge(context, database, source, target);