Skip to content

Commit 6b53a48

Browse files
fix(ui): zod schema refiners must return boolean
1 parent c813fa3 commit 6b53a48

File tree

1 file changed

+2
-0
lines changed
  • invokeai/frontend/web/src/features/nodes/types

1 file changed

+2
-0
lines changed

invokeai/frontend/web/src/features/nodes/types/field.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ const zStringFieldInputTemplate = zFieldInputTemplateBase
302302
if (val.maxLength !== undefined && val.minLength !== undefined) {
303303
return val.maxLength >= val.minLength;
304304
}
305+
return true;
305306
},
306307
{ message: 'maxLength must be greater than or equal to minLength' }
307308
);
@@ -406,6 +407,7 @@ const zImageFieldCollectionInputTemplate = zFieldInputTemplateBase
406407
if (val.maxLength !== undefined && val.minLength !== undefined) {
407408
return val.maxLength >= val.minLength;
408409
}
410+
return true;
409411
},
410412
{ message: 'maxLength must be greater than or equal to minLength' }
411413
);

0 commit comments

Comments
 (0)