We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca48e94 + 0171c64 commit 02727daCopy full SHA for 02727da
1 file changed
src/controls/dynamicForm/dynamicField/DynamicField.tsx
@@ -32,7 +32,7 @@ export class DynamicField extends React.Component<IDynamicFieldProps, IDynamicFi
32
spfxContext: { pageContext: this.props.context.pageContext }
33
});
34
this.state = {
35
- changedValue: props.fieldType === 'Thumbnail' ? props.fieldDefaultValue : null
+ changedValue: props.fieldDefaultValue !== undefined || props.fieldDefaultValue !== '' || props.fieldDefaultValue !== null || !this.isEmptyArray(props.fieldDefaultValue) ? props.fieldDefaultValue : null
36
};
37
}
38
0 commit comments