Skip to content

Commit

Permalink
Merge pull request #13860 from strapi/fix/numbre-0-null
Browse files Browse the repository at this point in the history
EditViewDataManagerProvider: Ensure 0 is not converted to null
  • Loading branch information
gu-stav committed Jul 27, 2022
2 parents af565b0 + f74ec11 commit cd963b7
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -238,7 +238,8 @@ const EditViewDataManagerProvider = ({
['text', 'textarea', 'string', 'email', 'uid', 'select', 'select-one', 'number'].includes(
type
) &&
!value
!value &&
value !== 0
) {
inputValue = null;
}
Expand Down

0 comments on commit cd963b7

Please sign in to comment.