Skip to content

Commit

Permalink
Minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimon committed Sep 3, 2022
1 parent 7cd17cc commit c2c736d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/editor/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export default class Editor extends Component {
getCurrentAnnotation = () =>
this.state.currentAnnotation.clone();

hasChanges = () =>
this.props.annotation?.isEqual(this.state.currentAnnotation);
hasChanges = () =>
!this.props.annotation?.isEqual(this.state.currentAnnotation);

/** Shorthand **/
updateCurrentAnnotation = (diff, saveImmediately) => this.setState({
Expand Down

0 comments on commit c2c736d

Please sign in to comment.