Skip to content

Commit f1e43c2

Browse files
authored
Merge pull request #709 from MetaCell/fix/netpyne-131
netpyne-131 Fix issue with default save path when entry is cleared
2 parents a9f7b85 + 798ff71 commit f1e43c2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

webapp/components/topbar/dialogs/OverwriteModel.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ const OverwriteModel = (props) => {
3939
if (value && value.startsWith('/')) { // We know we will be in a UNIX like env.
4040
return value
4141
}
42+
43+
const actualValue = !value? DEFAULT_DIR: value;
44+
4245
Utils
43-
.evalPythonMessage('netpyne_geppetto.getFullPath', [null, value])
46+
.evalPythonMessage('netpyne_geppetto.getFullPath', [null, actualValue])
4447
.then((fullpath) => {
4548
setDstPath(`${fullpath}/`)
4649
})

0 commit comments

Comments
 (0)