You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError('Canvas output node must accept an image input field named "image".');
89
101
}
90
102
103
+
// Validate that all nodes have valid templates
104
+
for(constnodeofinvocationNodes){
105
+
consttemplate=templates[node.data.type];
106
+
if(!template){
107
+
thrownewError(
108
+
`Node "${node.data.label||node.id}" uses invocation type "${node.data.type}" which is not available. This workflow may have been created with a different version of InvokeAI.`
109
+
);
110
+
}
111
+
}
112
+
113
+
// Validate that required fields without connections have values
`Node "${node.data.label||node.id}" is missing required field "${fieldTemplate.title||fieldName}".`
138
+
);
139
+
}
140
+
141
+
// Check if field has a value (not null/undefined/empty)
142
+
constvalue=fieldInstance.value;
143
+
if(value===null||value===undefined||value===''){
144
+
thrownewError(
145
+
`Node "${node.data.label||node.id}" has required field "${fieldTemplate.title||fieldName}" with no value. Please provide a value or connect this field.`
0 commit comments