fix(ui): canvas images not added to staging

This commit is contained in:
psychedelicious 2023-05-27 18:31:01 +10:00 committed by Kent Keirsey
parent 3ea5e78322
commit bdab73701f

View File

@ -57,14 +57,7 @@ export const addInvocationCompleteListener = () => {
graph_execution_state_id ===
getState().canvas.layerState.stagingArea.sessionId
) {
const [{ payload: image }] = await take(
(
action
): action is ReturnType<typeof imageMetadataReceived.fulfilled> =>
imageMetadataReceived.fulfilled.match(action) &&
action.payload.image_name === image_name
);
dispatch(addImageToStagingArea(image));
dispatch(addImageToStagingArea(imageDTO));
}
dispatch(progressImageSet(null));