Minor bugfix
This commit is contained in:
parent
7cd17cc8ca
commit
c2c736d6d5
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue