File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import {
2727 addInstancesToCanvas ,
2828 openConfirmationDialog
2929} from '../actions/general' ;
30- import { OPEN_BACKEND_ERROR_DIALOG , openBackendErrorDialog } from '../actions/errors' ;
30+ import { OPEN_BACKEND_ERROR_DIALOG , CLOSE_BACKEND_ERROR_DIALOG , openBackendErrorDialog } from '../actions/errors' ;
3131import { closeDrawerDialogBox } from '../actions/drawer' ;
3232import Utils from '../../Utils' ;
3333import { downloadJsonResponse , downloadPythonResponse } from './utils' ;
@@ -187,7 +187,6 @@ export default (store) => (next) => (action) => {
187187 switchLayoutAction ( false , reset ) ;
188188 getExperiments ( )
189189 next ( action ) ;
190-
191190 } ;
192191
193192 const pythonErrorCallback = ( error ) => {
@@ -341,10 +340,7 @@ export default (store) => (next) => (action) => {
341340 }
342341 case CREATE_NETWORK : {
343342 next ( GeppettoActions . waitData ( 'Instantiating the NetPyNE Model' , GeppettoActions . layoutActions . SET_WIDGETS ) ) ;
344-
345343 checkParametersThen ( ( ) => instantiateNetwork ( { } ) )
346-
347-
348344 break ;
349345 }
350346 case CREATE_SIMULATE_NETWORK : {
@@ -492,6 +488,11 @@ export default (store) => (next) => (action) => {
492488 } , pythonErrorCallback ) ;
493489 break ;
494490 }
491+ case CLOSE_BACKEND_ERROR_DIALOG : {
492+ next ( GeppettoActions . setWidgets ( store . getState ( ) . widgets ) ) ;
493+ next ( action ) ;
494+ break ;
495+ }
495496 default : {
496497 next ( action ) ;
497498 }
You can’t perform that action at this time.
0 commit comments