mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
if updating intermediate, dont add to gallery list cache
This commit is contained in:
parent
f73c70ca96
commit
ffe7d5785b
@ -258,7 +258,12 @@ export const imagesApi = api.injectEndpoints({
|
||||
*/
|
||||
|
||||
const patches: PatchCollection[] = [];
|
||||
const { image_name, board_id, image_category } = oldImageDTO;
|
||||
const { image_name, board_id, image_category, is_intermediate } = oldImageDTO;
|
||||
|
||||
const isChangingFromIntermediate = changes.is_intermediate === false;
|
||||
// do not add intermediates to gallery cache
|
||||
if (is_intermediate && !isChangingFromIntermediate) return;
|
||||
|
||||
const categories = IMAGE_CATEGORIES.includes(image_category)
|
||||
? IMAGE_CATEGORIES
|
||||
: ASSETS_CATEGORIES;
|
||||
|
Loading…
Reference in New Issue
Block a user