mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): gallery not loading on page load
This commit is contained in:
parent
57a3eb3652
commit
f88ccabe30
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user