mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
parent
bb6365213b
commit
a9387d49f4
@ -278,6 +278,10 @@ const createYupSchemaAttribute = (type, validations, isCreatingEntry) => {
|
||||
}
|
||||
|
||||
if (['number', 'integer', 'biginteger', 'float', 'decimal'].includes(type)) {
|
||||
if (value === 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return !!value;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user