Skip to content

Commit

Permalink
Merge pull request #7155 from strapi/fix/7139
Browse files Browse the repository at this point in the history
Fixes #7139
  • Loading branch information
alexandrebodin committed Jul 24, 2020
2 parents bb63652 + a9387d4 commit df7d7d4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ const createYupSchemaAttribute = (type, validations, isCreatingEntry) => {
}

if (['number', 'integer', 'biginteger', 'float', 'decimal'].includes(type)) {
if (value === 0) {
return true;
}

return !!value;
}

Expand Down

0 comments on commit df7d7d4

Please sign in to comment.