File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
src/containers/SequenceSearch/components/SearchForm Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,16 @@ class SearchForm extends React.Component {
38
38
</ div > )
39
39
}
40
40
41
+ onSubmit ( event ) {
42
+ event . preventDefault ( ) ;
43
+
44
+ const state = store . getState ( ) ;
45
+ if ( state . sequence ) {
46
+ store . dispatch ( actions . onSubmit ( state . sequence , this . props . databases ) ) ;
47
+ state . sequence = "" ;
48
+ }
49
+ }
50
+
41
51
render ( ) {
42
52
return (
43
53
< div className = "row" >
@@ -78,15 +88,6 @@ class SearchForm extends React.Component {
78
88
</ div >
79
89
)
80
90
}
81
-
82
- onSubmit ( event ) {
83
- event . preventDefault ( ) ;
84
-
85
- const state = store . getState ( ) ;
86
- if ( state . sequence ) {
87
- store . dispatch ( actions . onSubmit ( state . sequence , this . props . databases ) ) ;
88
- }
89
- }
90
91
}
91
92
92
93
const mapStateToProps = ( state ) => ( {
You can’t perform that action at this time.
0 commit comments