fix(doris): preserve single external catalog visibility

This commit is contained in:
jearhe authored and GitHub committed 2026-08-21 09:27:24 +08:00
1 parent 68179d16f5
commit 5792ce1244
3 files changed
+30 -4

No files matched your search

+2 -2
View File
@@ -68,7 +68,7 @@ import { mergeSqlObjectNavigationType, sqlObjectNavigationTypeFromTableType } fr
import * as api from "@/lib/backend/api";
import { isTauriRuntime } from "@/lib/backend/tauriRuntime";
import { useTunnelProfileStore } from "@/stores/tunnelProfileStore";
import { connectionIsDorisFamilyCatalogCapable, isInternalDorisCatalog, isSchemaAware, normalizeSidebarObjectKind, schemaNodeHasLoadableName, sidebarObjectKindsForDatabase, supportsPackageMemberExpansion, usesTreeSchemaMode } from "@/lib/database/databaseCapabilities";
import { connectionIsDorisFamilyCatalogCapable, isInternalDorisCatalog, isSchemaAware, normalizeSidebarObjectKind, schemaNodeHasLoadableName, shouldShowDorisCatalogTree, sidebarObjectKindsForDatabase, supportsPackageMemberExpansion, usesTreeSchemaMode } from "@/lib/database/databaseCapabilities";
import {
connectionDatabaseMetadataSchema,
connectionObjectTreeNodeSchema,
@@ -3869,7 +3869,7 @@ export const useConnectionStore = defineStore("connection", () => {
return null;
});
}
if (dorisCatalogs && dorisCatalogs.length > 1) {
if (dorisCatalogs && shouldShowDorisCatalogTree(dorisCatalogs)) {
const cacheKey = schemaCacheKey(connectionId, "doris-catalogs");
if (!options?.force) {
const cached = await loadPersistedTreeChildren(node, cacheKey, load);