Skip to content

Commit

Permalink
Fix Issue 1586 - Controls are shown with error messages even if the v…
Browse files Browse the repository at this point in the history
…alues are assigned
  • Loading branch information
NishkalankBezawada committed Jul 13, 2023
1 parent ca48e94 commit 0171c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/dynamicForm/dynamicField/DynamicField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class DynamicField extends React.Component<IDynamicFieldProps, IDynamicFi
spfxContext: { pageContext: this.props.context.pageContext }
});
this.state = {
changedValue: props.fieldType === 'Thumbnail' ? props.fieldDefaultValue : null
changedValue: props.fieldDefaultValue !== undefined || props.fieldDefaultValue !== '' || props.fieldDefaultValue !== null || !this.isEmptyArray(props.fieldDefaultValue) ? props.fieldDefaultValue : null
};
}

Expand Down

0 comments on commit 0171c64

Please sign in to comment.