Skip to content

Commit a412e9c

Browse files
committed
fix: maintain query positions
1 parent d35aa2a commit a412e9c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/library-authoring/collections/CollectionDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const CollectionStatsWidget = () => {
4444

4545
const blockQuery = [`collections.key = "${collectionId}"`];
4646
if (libraryId) {
47-
blockQuery.push(`context_key = "${libraryId}"`);
47+
blockQuery.splice(0, 0, `context_key = "${libraryId}"`);
4848
}
4949
const { data: blockTypes } = useGetBlockTypes(blockQuery);
5050

src/library-authoring/collections/LibraryCollectionPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ const LibraryCollectionPage = () => {
178178

179179
const extraFilter = [`collections.key = "${collectionId}"`];
180180
if (libraryId) {
181-
extraFilter.push(`context_key = "${libraryId}"`);
181+
extraFilter.splice(0, 0, `context_key = "${libraryId}"`);
182182
}
183183
if (showOnlyPublished) {
184184
extraFilter.push('last_published IS NOT NULL');

0 commit comments

Comments
 (0)