Minor bugfix

This commit is contained in:
Rainer Simon 2022-09-03 19:17:30 +02:00
parent 7cd17cc8ca
commit c2c736d6d5
1 changed files with 2 additions and 2 deletions

View File

@ -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({