Skip to content

Commit d0e0f27

Browse files
committed
DictionaryEditorView: Fix eslint warning
1 parent 1750577 commit d0e0f27

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/views/dictionary/report/editor.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ export class DictionaryEditorView extends React.PureComponent<Props, State> {
2525
}
2626
}
2727

28+
state = {
29+
term: this.props.navigation.state.params.word.word,
30+
definition: this.props.navigation.state.params.word.definition,
31+
}
32+
2833
static getDerivedStateFromProps(nextProps: Props) {
2934
let entry = nextProps.navigation.state.params.word
3035
return {
@@ -33,11 +38,6 @@ export class DictionaryEditorView extends React.PureComponent<Props, State> {
3338
}
3439
}
3540

36-
state = {
37-
term: this.props.navigation.state.params.word.word,
38-
definition: this.props.navigation.state.params.word.definition,
39-
}
40-
4141
submit = () => {
4242
submitReport(this.props.navigation.state.params.word, {
4343
word: this.state.term,

0 commit comments

Comments
 (0)