mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +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(
|
['text', 'textarea', 'string', 'email', 'uid', 'select', 'select-one', 'number'].includes(
|
||||||
type
|
type
|
||||||
) &&
|
) &&
|
||||||
!value
|
!value &&
|
||||||
|
value !== 0
|
||||||
) {
|
) {
|
||||||
inputValue = null;
|
inputValue = null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user