Skip to content

Commit

Permalink
Merge pull request #120 from cryptoeng/119-enter-data-helper-OnPreSave
Browse files Browse the repository at this point in the history
Fixes #119
  • Loading branch information
taudor committed Jul 7, 2020
2 parents 2e9c695 + cdb4171 commit 76a694f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/enter-data-helper/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "enter-data-helper",
"author": "CryptoEng",
"version": "0.1.3",
"version": "0.1.4",
"private": true,
"homepage": "./",
"build": {
Expand Down
2 changes: 1 addition & 1 deletion tools/enter-data-helper/src/components/BaseComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit 76a694f

Please sign in to comment.