EditViewDataManagerProvider: Ensure 0 is not converted to null

This commit is contained in:
Gustav Hansen 2022-07-27 08:23:25 +02:00
parent b3b6bdf321
commit f74ec11a9e

View File

@ -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;
} }