Minor bugfix
This commit is contained in:
parent
7cd17cc8ca
commit
c2c736d6d5
|
@ -122,8 +122,8 @@ export default class Editor extends Component {
|
||||||
getCurrentAnnotation = () =>
|
getCurrentAnnotation = () =>
|
||||||
this.state.currentAnnotation.clone();
|
this.state.currentAnnotation.clone();
|
||||||
|
|
||||||
hasChanges = () =>
|
hasChanges = () =>
|
||||||
this.props.annotation?.isEqual(this.state.currentAnnotation);
|
!this.props.annotation?.isEqual(this.state.currentAnnotation);
|
||||||
|
|
||||||
/** Shorthand **/
|
/** Shorthand **/
|
||||||
updateCurrentAnnotation = (diff, saveImmediately) => this.setState({
|
updateCurrentAnnotation = (diff, saveImmediately) => this.setState({
|
||||||
|
|
Loading…
Reference in New Issue