mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
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:
1 parent
1ee99447d8
commit
218e12864e
1 file changed
+2
-1
+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(
|
||||
|
||||
Reference in new issue
Block a user