File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
source/views/dictionary/report Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments