Skip to content

Commit 02727da

Browse files
authored
Merge pull request #1587 from NishkalankBezawada/Issue-1586
Fix 1586 - controls are shown with error messages even if the values are assigned
2 parents ca48e94 + 0171c64 commit 02727da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controls/dynamicForm/dynamicField/DynamicField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class DynamicField extends React.Component<IDynamicFieldProps, IDynamicFi
3232
spfxContext: { pageContext: this.props.context.pageContext }
3333
});
3434
this.state = {
35-
changedValue: props.fieldType === 'Thumbnail' ? props.fieldDefaultValue : null
35+
changedValue: props.fieldDefaultValue !== undefined || props.fieldDefaultValue !== '' || props.fieldDefaultValue !== null || !this.isEmptyArray(props.fieldDefaultValue) ? props.fieldDefaultValue : null
3636
};
3737
}
3838

0 commit comments

Comments
 (0)