mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): zod schema refiners must return boolean
This commit is contained in:
@@ -302,6 +302,7 @@ const zStringFieldInputTemplate = zFieldInputTemplateBase
|
||||
if (val.maxLength !== undefined && val.minLength !== undefined) {
|
||||
return val.maxLength >= val.minLength;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
{ message: 'maxLength must be greater than or equal to minLength' }
|
||||
);
|
||||
@@ -406,6 +407,7 @@ const zImageFieldCollectionInputTemplate = zFieldInputTemplateBase
|
||||
if (val.maxLength !== undefined && val.minLength !== undefined) {
|
||||
return val.maxLength >= val.minLength;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
{ message: 'maxLength must be greater than or equal to minLength' }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user