Skip to content

Commit 9044402

Browse files
Merge pull request #502 from MetaCell/feature/499
#499 save to json previously broken
2 parents 05a563e + 4e84d61 commit 9044402

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

netpyne_ui/netpyne_geppetto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def exportModel(self, args):
592592
sim.saveData(include)
593593
sim.cfg.saveJson = False
594594

595-
with open(f"{sim.cfg.filename}.json") as json_file:
595+
with open(f"{sim.cfg.filename}_data.json") as json_file:
596596
data = json.load(json_file)
597597
return data
598598

webapp/components/topbar/dialogs/ActionDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ActionDialog extends React.Component {
3838
performAction = () => {
3939
if (this.props.command) {
4040
if (this.props.isFormValid === undefined || this.props.isFormValid()) {
41-
if (typeof this.props.callback !== 'undefined' || this.props.callback !== null) {
41+
if (typeof this?.props?.callback !== 'undefined' && this?.props?.callback !== null) {
4242
this.props.callback(this.props.command, this.props.args);
4343
} else {
4444
// GEPPETTO.trigger(GEPPETTO.Events.Show_spinner, this.props.message);

0 commit comments

Comments
 (0)