Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(webv2): rearm saved workflow retries on selection change

JPPhotod36aff374c75
diff --git a/invokeai/frontend/webv2/src/features/workflow/ui/editor/CallSavedWorkflowSyncRuntime.tsx b/invokeai/frontend/webv2/src/features/workflow/ui/editor/CallSavedWorkflowSyncRuntime.tsx
index 441a2a2702..c887c75048 100644
--- a/invokeai/frontend/webv2/src/features/workflow/ui/editor/CallSavedWorkflowSyncRuntime.tsx
+++ b/invokeai/frontend/webv2/src/features/workflow/ui/editor/CallSavedWorkflowSyncRuntime.tsx
@@ -216,10 +216,11 @@ export const CallSavedWorkflowSyncRuntime = () => {
}
if (
- node.data.callSavedWorkflowStatus === 'loading' &&
- previousWorkflowId === workflowId &&
- previousStatus === 'error' &&
- query?.state.status === 'error'
+ (previousWorkflowId !== undefined && previousWorkflowId !== workflowId) ||
+ (node.data.callSavedWorkflowStatus === 'loading' &&
+ previousWorkflowId === workflowId &&
+ previousStatus === 'error' &&
+ query?.state.status === 'error')
) {
retryableDetailWorkflowIds.current.set(node.id, workflowId);
}