From 32ad128aa5a83f6e59db82ce3a1578b24d8173a6 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 1 Dec 2017 19:04:41 +0100 Subject: [PATCH] fix scenario save --- src/app/tabs/run-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tabs/run-tab.js b/src/app/tabs/run-tab.js index 6ce2e8662e..59758d2e8a 100644 --- a/src/app/tabs/run-tab.js +++ b/src/app/tabs/run-tab.js @@ -283,8 +283,8 @@ function makeRecorder (appAPI, appEvents) { modalDialogCustom.prompt(null, 'save ran transactions to file (e.g. `scenario.json`). The file is going to be saved under ' + path, 'scenario.json', input => { var fileProvider = appAPI.fileProviderOf(path) if (fileProvider) { - input = helper.createNonClashingName(input, fileProvider, '.json') var newFile = path + input + newFile = helper.createNonClashingName(newFile, fileProvider, '.json') if (!fileProvider.set(newFile, txJSON)) { modalDialogCustom.alert('Failed to create file ' + newFile) } else {