From 38265b312374d6c3d95749154f5bef86866dc199 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 21 May 2024 20:59:29 +1000 Subject: [PATCH] docs(ui): update validateWorkflow comments --- .../web/src/features/nodes/util/workflow/validateWorkflow.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/invokeai/frontend/web/src/features/nodes/util/workflow/validateWorkflow.ts b/invokeai/frontend/web/src/features/nodes/util/workflow/validateWorkflow.ts index 546537e275..e757ab8e13 100644 --- a/invokeai/frontend/web/src/features/nodes/util/workflow/validateWorkflow.ts +++ b/invokeai/frontend/web/src/features/nodes/util/workflow/validateWorkflow.ts @@ -112,6 +112,9 @@ export const validateWorkflow = async ( }); continue; } + + // We need to confirm that all images, boards and models are accessible before loading, + // else the workflow could end up with stale data an an error state. if (fieldTemplate.type.name === 'ImageField' && isImageFieldInputInstance(input) && input.value) { const hasAccess = await checkImageAccess(input.value.image_name); if (!hasAccess) {