fix(app): exclude schema from object search
This commit is contained in:
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)),
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user