fix: materialize filter queries so the relationship fallback keeps them

loadGridRows builds its queries twice on the fallback path, and loadPage
passed a Map iterator that the first build exhausted - the retry then ran
without the active filters and paged in rows outside them.
This commit is contained in:
harsh mahajan committed 2026-07-31 12:39:17 +05:30
1 parent 1ee99447d8
commit 218e12864e
1 file changed
+2 -1
@@ -723,7 +723,8 @@
}
const parsedQueries = data.parsedQueries;
const filterQueries = parsedQueries.size ? data.parsedQueries.values() : [];
// materialized: the fallback in `loadGridRows` builds the queries more than once.
const filterQueries = parsedQueries.size ? Array.from(data.parsedQueries.values()) : [];
$paginatedRowsLoading = true;
const loadedRows = await loadGridRows(