fix: Do not add anything but final output to staging area

This commit is contained in:
blessedcoolant 2023-08-12 21:10:30 +12:00
parent f296e5c41e
commit 27bd127fb0

View File

@ -7,6 +7,7 @@ import {
imageSelected,
} from 'features/gallery/store/gallerySlice';
import { IMAGE_CATEGORIES } from 'features/gallery/store/types';
import { INPAINT_FINAL_IMAGE } from 'features/nodes/util/graphBuilders/constants';
import { progressImageSet } from 'features/system/store/systemSlice';
import { imagesApi } from 'services/api/endpoints/images';
import { isImageOutput } from 'services/api/guards';
@ -52,7 +53,9 @@ export const addInvocationCompleteEventListener = () => {
// Add canvas images to the staging area
if (
graph_execution_state_id === canvas.layerState.stagingArea.sessionId
graph_execution_state_id ===
canvas.layerState.stagingArea.sessionId &&
data.source_node_id === INPAINT_FINAL_IMAGE
) {
dispatch(addImageToStagingArea(imageDTO));
}