Skip to content

Commit

Permalink
Bugfix + closes #86
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimon committed Oct 14, 2021
1 parent 47716f4 commit c66cb42
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 31 deletions.
41 changes: 13 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
"mocha": "^9.1.2"
},
"dependencies": {
"@babel/polyfill": "^7.10.4",
"core-js": "^3.18.3",
"downshift": "^6.1.3",
"fast-deep-equal": "^3.1.3",
"node-polyglot": "^2.4.0",
"react-autosize-textarea": "^7.1.0",
"react-draggable": "^4.4.3",
"react-select": "^4.3.1",
"react-transition-group": "^4.4.2",
"regenerator-runtime": "^0.13.9",
"timeago-react": "^3.0.2",
"uuid": "^8.3.2"
}
Expand Down
2 changes: 1 addition & 1 deletion src/editor/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export default class Editor extends Component {
// Update
.map(b => {
const diff = toUpdate.find(t => t.previous === b);
return diff ? diff.updated : body;
return diff ? diff.updated : b;
}),

// Append
Expand Down
3 changes: 2 additions & 1 deletion src/polyfills/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import '@babel/polyfill';
import 'core-js/stable';
import 'regenerator-runtime/runtime';

/**
* Adds DOM polyfills that babel polyfill doesn't include
Expand Down

0 comments on commit c66cb42

Please sign in to comment.