Skip to content

Commit c6696d7

Browse files
fix(ui): ensure origin is set correctly for generate tab batches
This prevents an issue in the image viewer's logic for simulating the progress image "resolving" to a completed image
1 parent 8bcb664 commit c6696d7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

invokeai/frontend/web/src/features/queue/hooks/useEnqueueGenerate.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ const enqueueGenerate = async (store: AppStore, prepend: boolean) => {
3535

3636
const state = getState();
3737

38-
const destination = 'generate';
39-
4038
const model = state.params.model;
4139
if (!model) {
4240
log.error('No model found in state');
@@ -105,8 +103,8 @@ const enqueueGenerate = async (store: AppStore, prepend: boolean) => {
105103
prepend,
106104
seedNode: seed,
107105
positivePromptNode: positivePrompt,
108-
origin: 'canvas',
109-
destination,
106+
origin: 'generate',
107+
destination: 'generate',
110108
})
111109
);
112110

0 commit comments

Comments
 (0)