fix(sidebar): preserve Mongo collection children in search

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-07-08 23:44:25 +08:00
1 parent 843babf522
commit ddf6b3ed6b
2 files changed
+92 -1

No files matched your search

@@ -1,7 +1,7 @@
import type { TreeNode, TreeNodeType } from "@/types/database";
import { createSidebarLabelMatcher, type SidebarLabelMatcher } from "@/lib/sidebar/sidebarSearch";
const preserveMatchedSubtreeTypes = new Set(["connection", "database", "schema", "table", "view"]);
const preserveMatchedSubtreeTypes = new Set(["connection", "database", "schema", "table", "view", "mongo-db", "mongo-collection"]);
const normalizedLabelCache = new WeakMap<TreeNode, { label: string; normalized: string }>();