diff --git a/tools/enter-data-helper/package.json b/tools/enter-data-helper/package.json index e551f836..8cb1de55 100644 --- a/tools/enter-data-helper/package.json +++ b/tools/enter-data-helper/package.json @@ -1,7 +1,7 @@ { "name": "enter-data-helper", "author": "CryptoEng", - "version": "0.1.3", + "version": "0.1.4", "private": true, "homepage": "./", "build": { diff --git a/tools/enter-data-helper/src/components/BaseComponents.js b/tools/enter-data-helper/src/components/BaseComponents.js index f0d36546..35507d7e 100644 --- a/tools/enter-data-helper/src/components/BaseComponents.js +++ b/tools/enter-data-helper/src/components/BaseComponents.js @@ -150,7 +150,7 @@ class EditFile extends React.Component { try { var data = Object.assign({}, this.state.data); if (this.props.onPreSave) this.props.onPreSave(data); - data = yaml.dump(this.state.data); + data = yaml.dump(data); fs.writeFileSync(this.props.filePath, data); this.setQuitHook(false); this.setState({savedData: this.state.data, dataChanged: false});