fix(ui): gallery not loading on page load

This commit is contained in:
psychedelicious 2023-05-26 13:55:44 +10:00
parent 57a3eb3652
commit f88ccabe30

View File

@ -11,10 +11,6 @@ export const receivedResultImagesPage = createAppAsyncThunk(
async (_arg, { getState, rejectWithValue }) => {
const { page, pages, nextPage } = getState().results;
if (nextPage === page) {
return rejectWithValue([]);
}
const response = await ImagesService.listImagesWithMetadata({
imageType: 'results',
imageCategory: 'general',
@ -33,10 +29,6 @@ export const receivedUploadImagesPage = createAppAsyncThunk(
async (_arg, { getState, rejectWithValue }) => {
const { page, pages, nextPage } = getState().uploads;
if (nextPage === page) {
return rejectWithValue([]);
}
const response = await ImagesService.listImagesWithMetadata({
imageType: 'uploads',
imageCategory: 'general',