fix(app): exclude schema from object search

This commit is contained in:
t8y2 committed 2026-05-19 14:01:59 +08:00
1 parent c1ba7235b9
commit ec0e2498ca
3 files changed
+30 -12

No files matched your search

@@ -44,3 +44,11 @@ export function buildObjectBrowserRows(options: {
];
});
}
export function filterObjectBrowserRows(rows: ObjectBrowserRow[], query: string): ObjectBrowserRow[] {
const q = query.trim().toLowerCase();
if (!q) return rows;
return rows.filter((row) =>
[row.name, row.type, row.comment].filter(Boolean).some((value) => String(value).toLowerCase().includes(q)),
);
}