File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/jsx/import/session-type Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ var ModelGenerate = React.createClass({
14
14
// initial 'state properties'
15
15
getInitialState : function ( ) {
16
16
return {
17
+ mounted : 'false' ,
17
18
value_session_id : '--Select--' ,
18
19
value_model_type : '--Select--' ,
19
20
render_submit : false ,
@@ -111,6 +112,9 @@ var ModelGenerate = React.createClass({
111
112
} ,
112
113
// call back: get session id(s) from server side, and append to form
113
114
componentDidMount : function ( ) {
115
+ // variables
116
+ this . mounted = true ;
117
+
114
118
// ajax arguments
115
119
var ajaxEndpoint = '/retrieve-session/' ;
116
120
var ajaxArguments = {
@@ -140,6 +144,9 @@ var ModelGenerate = React.createClass({
140
144
} . bind ( this ) ,
141
145
// pass ajax arguments
142
146
ajaxArguments ) ;
147
+ } ,
148
+ componentWillUnmount ( ) {
149
+ this . mounted = false ;
143
150
}
144
151
} ) ;
145
152
You can’t perform that action at this time.
0 commit comments