fix(ui): fix missing init image when fit disabled

This commit is contained in:
psychedelicious 2023-05-30 17:29:47 +10:00 committed by Kent Keirsey
parent fab7a1d337
commit 33bbae2f47

View File

@ -384,8 +384,8 @@ export const buildImageToImageGraph = (state: RootState): Graph => {
},
});
} else {
// We are not resizing, so we need to set the image on the `LATENTS_TO_LATENTS` node explicitly
set(graph.nodes[LATENTS_TO_LATENTS], 'image', {
// We are not resizing, so we need to set the image on the `IMAGE_TO_LATENTS` node explicitly
set(graph.nodes[IMAGE_TO_LATENTS], 'image', {
image_name: initialImage.image_name,
image_origin: initialImage.image_origin,
});