This commit is contained in:
Rainer Simon 2021-07-07 18:49:16 +02:00
parent e9290c3f98
commit 0bf3fcfbff
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ export default class Editor extends Component {
// selected for editing)
if (currentAnnotation.bodies.length === 0 && !this.props.allowEmpty) {
if (currentAnnotation.isSelection)
onCancel();
this.onCancel();
else
this.props.onAnnotationDeleted(this.props.annotation);
} else {