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