mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
docs(ui): update validateWorkflow comments
This commit is contained in:
parent
caca28286c
commit
38265b3123
@ -112,6 +112,9 @@ export const validateWorkflow = async (
|
|||||||
});
|
});
|
||||||
continue;
|
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) {
|
if (fieldTemplate.type.name === 'ImageField' && isImageFieldInputInstance(input) && input.value) {
|
||||||
const hasAccess = await checkImageAccess(input.value.image_name);
|
const hasAccess = await checkImageAccess(input.value.image_name);
|
||||||
if (!hasAccess) {
|
if (!hasAccess) {
|
||||||
|
Loading…
Reference in New Issue
Block a user