Skip to content

Commit 0c86f4e

Browse files
Samuele Alfredo FurnariSamuele Alfredo Furnari
authored andcommitted
initialize changedValue with defaultValue
1 parent 7112cbd commit 0c86f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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
3636
};
3737
}
3838

0 commit comments

Comments
 (0)