We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c09925 commit 2459709Copy full SHA for 2459709
1 file changed
webapp/components/topbar/menuConfiguration.js
@@ -14,6 +14,7 @@ import {
14
setTheme,
15
} from '../../redux/actions/general';
16
import {
17
+ MODEL_STATE,
18
TOPBAR_CONSTANTS, THEMES, TUTORIALS_LIST,
19
} from '../../constants';
20
import { openLaunchDialog } from '../../redux/actions/experiments';
@@ -328,7 +329,8 @@ export const getModelMenu = (props) => (
328
329
? [openLaunchDialog()]
330
// TODO: (#263) this logic causes issues by potentially simulating
331
// old instance with modified netParams and simConfig
- : [props.modelState ? createAndSimulateNetwork : simulateNetwork],
332
+ // : [props.modelState ? createAndSimulateNetwork : simulateNetwork],
333
+ : [props.modelState === MODEL_STATE.NOT_INSTANTIATED ? createAndSimulateNetwork : simulateNetwork()],
334
},
335
336
{
0 commit comments