Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Always clear text markers
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Jul 10, 2019
1 parent 8d54bd5 commit 3cfa9ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/demo/editor.jsx
Expand Up @@ -47,8 +47,9 @@ export default class Editor extends React.Component {
}

_showProblems() {
this._clearTextMarkers();

if (this.props.errors) {
this._clearTextMarkers();
this._textMarkers = this.props.errors.map(error => {
let from = {
line: error.line - 1,
Expand Down

0 comments on commit 3cfa9ab

Please sign in to comment.