mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): only cancel on staging commit if processing
This commit is contained in:
parent
a7cebbd970
commit
1ddc620192
@ -10,9 +10,14 @@ export const addCommitStagingAreaImageListener = () => {
|
||||
actionCreator: commitStagingAreaImage,
|
||||
effect: async (action, { dispatch, getState }) => {
|
||||
const state = getState();
|
||||
const { sessionId } = state.system;
|
||||
const { sessionId, isProcessing } = state.system;
|
||||
const canvasSessionId = action.payload;
|
||||
|
||||
if (!isProcessing) {
|
||||
// Only need to cancel if we are processing
|
||||
return;
|
||||
}
|
||||
|
||||
if (!canvasSessionId) {
|
||||
moduleLog.debug('No canvas session, skipping cancel');
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user