diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index c21ba68..d0de315 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -117,7 +117,7 @@ const Editor = props => { }; const onCancel = () => - props.onCancel(currentAnnotation); + props.onCancel(props.annotation); const onOk = _ => { // Removes the state payload from all bodies