mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
EditViewDataManagerProvider: Ensure 0 is not converted to null
This commit is contained in:
parent
b3b6bdf321
commit
f74ec11a9e
@ -238,7 +238,8 @@ const EditViewDataManagerProvider = ({
|
||||
['text', 'textarea', 'string', 'email', 'uid', 'select', 'select-one', 'number'].includes(
|
||||
type
|
||||
) &&
|
||||
!value
|
||||
!value &&
|
||||
value !== 0
|
||||
) {
|
||||
inputValue = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user