Skip to content

Commit 2459709

Browse files
committed
#643 fix: Fix simulation error from topbar menu
1 parent 9c09925 commit 2459709

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

webapp/components/topbar/menuConfiguration.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
setTheme,
1515
} from '../../redux/actions/general';
1616
import {
17+
MODEL_STATE,
1718
TOPBAR_CONSTANTS, THEMES, TUTORIALS_LIST,
1819
} from '../../constants';
1920
import { openLaunchDialog } from '../../redux/actions/experiments';
@@ -328,7 +329,8 @@ export const getModelMenu = (props) => (
328329
? [openLaunchDialog()]
329330
// TODO: (#263) this logic causes issues by potentially simulating
330331
// old instance with modified netParams and simConfig
331-
: [props.modelState ? createAndSimulateNetwork : simulateNetwork],
332+
// : [props.modelState ? createAndSimulateNetwork : simulateNetwork],
333+
: [props.modelState === MODEL_STATE.NOT_INSTANTIATED ? createAndSimulateNetwork : simulateNetwork()],
332334
},
333335
},
334336
{

0 commit comments

Comments
 (0)