mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix duplicate is_intermediate
query param when fetching images
This commit is contained in:
parent
a6c615a98c
commit
0472b33164
@ -54,7 +54,9 @@ export const addBoardIdSelectedListener = () => {
|
|||||||
filteredImages.length < board.image_count &&
|
filteredImages.length < board.image_count &&
|
||||||
filteredImages.length < IMAGES_PER_PAGE
|
filteredImages.length < IMAGES_PER_PAGE
|
||||||
) {
|
) {
|
||||||
dispatch(receivedPageOfImages({ categories, board_id }));
|
dispatch(
|
||||||
|
receivedPageOfImages({ categories, board_id, is_intermediate: false })
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -97,7 +99,9 @@ export const addBoardIdSelected_changeSelectedImage_listener = () => {
|
|||||||
filteredImages.length < board.image_count &&
|
filteredImages.length < board.image_count &&
|
||||||
filteredImages.length < IMAGES_PER_PAGE
|
filteredImages.length < IMAGES_PER_PAGE
|
||||||
) {
|
) {
|
||||||
dispatch(receivedPageOfImages({ categories, board_id }));
|
dispatch(
|
||||||
|
receivedPageOfImages({ categories, board_id, is_intermediate: false })
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -20,6 +20,7 @@ export const addImageCategoriesChangedListener = () => {
|
|||||||
receivedPageOfImages({
|
receivedPageOfImages({
|
||||||
categories: action.payload,
|
categories: action.payload,
|
||||||
board_id: state.boards.selectedBoardId,
|
board_id: state.boards.selectedBoardId,
|
||||||
|
is_intermediate: false,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -168,6 +168,7 @@ const ImageGalleryContent = () => {
|
|||||||
receivedPageOfImages({
|
receivedPageOfImages({
|
||||||
categories,
|
categories,
|
||||||
board_id: selectedBoardId,
|
board_id: selectedBoardId,
|
||||||
|
is_intermediate: false,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}, [categories, dispatch, selectedBoardId]);
|
}, [categories, dispatch, selectedBoardId]);
|
||||||
|
@ -256,7 +256,6 @@ export const imageUpdated = createAppAsyncThunk<
|
|||||||
export const IMAGES_PER_PAGE = 20;
|
export const IMAGES_PER_PAGE = 20;
|
||||||
|
|
||||||
const DEFAULT_IMAGES_LISTED_ARG = {
|
const DEFAULT_IMAGES_LISTED_ARG = {
|
||||||
isIntermediate: false,
|
|
||||||
limit: IMAGES_PER_PAGE,
|
limit: IMAGES_PER_PAGE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user