Skip to content

Commit 0d52ffd

Browse files
author
Lucas Rebscher
authored
Merge pull request #392 from MetaCell/feature/347_fix_instantiate_logic
#347 Always instantiate network
2 parents 53fd7d8 + 80b6dc5 commit 0d52ffd

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

webapp/components/topbar/SwitchPageButton.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,8 @@ class SwitchPageButton extends Component {
4343
}
4444

4545
handleClick = (selectedOption) => {
46-
const instantiate = this.props.modelState === MODEL_STATE.NOT_INSTANTIATED;
4746
if (selectedOption === CREATE_NETWORK) {
48-
if (instantiate) {
49-
this.props.createNetwork();
50-
} else {
51-
this.props.showNetwork();
52-
}
47+
this.props.createNetwork();
5348
} else if (selectedOption === SIMULATE) {
5449
this.props.simulateNetwork();
5550
} else if (selectedOption === CREATE_AND_SIMULATE) {

0 commit comments

Comments
 (0)