File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 88 VIEW_EXPERIMENTS_RESULTS ,
99 TRIAL_LOAD_MODEL_SPEC ,
1010} from 'root/redux/actions/experiments' ;
11- import { NETPYNE_COMMANDS } from 'root/constants' ;
11+ import { NETPYNE_COMMANDS , EDIT_WIDGETS } from 'root/constants' ;
1212import * as GeppettoActions from '@metacell/geppetto-meta-client/common/actions' ;
1313import * as ExperimentsApi from 'root/api/experiments' ;
1414import {
@@ -285,7 +285,11 @@ export default (store) => (next) => (action) => {
285285 break ;
286286 }
287287 case SIMULATE_NETWORK : {
288- next ( GeppettoActions . waitData ( 'Simulating the NetPyNE Model' , GeppettoActions . layoutActions . SET_WIDGETS ) ) ;
288+ if ( ! action . payload ) {
289+ next ( GeppettoActions . waitData ( 'Simulating the NetPyNE Model' , GeppettoActions . layoutActions . SET_WIDGETS ) ) ;
290+ } else {
291+ next ( GeppettoActions . activateWidget ( EDIT_WIDGETS . experimentManager . id ) ) ;
292+ }
289293 let allParams = true ;
290294 ExperimentsApi . getParameters ( )
291295 . then ( ( params ) => {
You can’t perform that action at this time.
0 commit comments