Skip to content

Commit e483bd3

Browse files
author
Denis Ryabko
committed
fix(utils): refine default value checks in getFieldInitials function
1 parent 8a364f6 commit e483bd3

File tree

1 file changed

+1
-1
lines changed
  • src/lib/core/components/Form/Controller

1 file changed

+1
-1
lines changed

src/lib/core/components/Form/Controller/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export const getFieldInitials = <
239239
}
240240

241241
if (isNil(value)) {
242-
if (!isNil(spec.defaultValue) || spec.defaultValue !== '') {
242+
if (!(isNil(spec.defaultValue) || spec.defaultValue === '')) {
243243
value = transformArrIn(spec.defaultValue) as DirtyValue;
244244
}
245245
// if the spec with type array or object, and this spec has "required === true",

0 commit comments

Comments
 (0)