Fix: keep simple sidebar table pagination bounded (#2092)

This commit is contained in:
zipg authored and GitHub committed 2026-06-30 00:08:41 +08:00
1 parent b951d3a50a
commit 267768ecbd
4 files changed
+53 -7

No files matched your search

+7
View File
@@ -254,6 +254,13 @@ export function mergeTableInfosIntoObjects(objects: readonly ObjectInfo[], table
return merged;
}
export function filterSimpleSidebarSupplementalObjects(objects: readonly ObjectInfo[]): ObjectInfo[] {
return objects.filter((object) => {
const objectType = normalizeObjectType(object.object_type);
return objectType !== "TABLE" && objectType !== "VIEW" && objectType !== "MATERIALIZED_VIEW";
});
}
function buildPartitionTree(entries: TableTreeEntry[], connectionId: string, database: string): TreeNode[] {
const orderedEntries = sortDatabaseObjectsByName(entries, (entry) => entry.node.label);
const byKey = new Map<string, TableTreeEntry>();