From c2c736d6d547c50a1c6bf30ad3285cf133f809ce Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sat, 3 Sep 2022 19:17:30 +0200 Subject: [PATCH] Minor bugfix --- src/editor/Editor.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index 864138a..7962d0b 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -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({