Skip to content

Commit 0df7ec4

Browse files
committed
use props instead of this.props
1 parent 5937ed9 commit 0df7ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Form extends React.Component {
9999

100100
this.state = {
101101
errors: {},
102-
inputValues: this.props.draftValues,
102+
inputValues: props.draftValues,
103103
};
104104

105105
this.formRef = React.createRef(null);

0 commit comments

Comments
 (0)