Skip to content

Commit

Permalink
Merge pull request #1587 from NishkalankBezawada/Issue-1586
Browse files Browse the repository at this point in the history
Fix 1586 - controls are shown with error messages even if the values are assigned
  • Loading branch information
joaojmendes authored Jul 13, 2023
2 parents ca48e94 + 0171c64 commit 02727da
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 02727da

Please sign in to comment.