fix(ui): fix image fetching query string

This commit is contained in:
psychedelicious
2023-06-24 17:30:47 +10:00
parent dde497404b
commit 8f9fa15fc8
3 changed files with 27 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
import queryString from 'query-string';
import { createAppAsyncThunk } from 'app/store/storeUtils';
import { selectImagesAll } from 'features/gallery/store/imagesSlice';
import { size } from 'lodash-es';
@@ -314,6 +315,7 @@ export const receivedPageOfImages = createAppAsyncThunk<
params: {
query,
},
querySerializer: (q) => queryString.stringify(q, { arrayFormat: 'none' }),
});
if (error) {