We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a364f6 commit e483bd3Copy full SHA for e483bd3
src/lib/core/components/Form/Controller/utils.tsx
@@ -239,7 +239,7 @@ export const getFieldInitials = <
239
}
240
241
if (isNil(value)) {
242
- if (!isNil(spec.defaultValue) || spec.defaultValue !== '') {
+ if (!(isNil(spec.defaultValue) || spec.defaultValue === '')) {
243
value = transformArrIn(spec.defaultValue) as DirtyValue;
244
245
// if the spec with type array or object, and this spec has "required === true",
0 commit comments