Fix display empty value if boolean instead of false on show page (#4468)
* default value boolean fixed * fixed creation, fixed updating a value to false * fixed default value for default value if boolean * fixed tests --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
@ -45,7 +45,7 @@ export const formatFieldMetadataItemInput = (
|
||||
return {
|
||||
defaultValue: defaultOption
|
||||
? `'${getOptionValueFromLabel(defaultOption.label)}'`
|
||||
: undefined,
|
||||
: input.defaultValue,
|
||||
description: input.description?.trim() ?? null,
|
||||
icon: input.icon,
|
||||
label: input.label.trim(),
|
||||
|
||||
Reference in New Issue
Block a user