Bugfix
This commit is contained in:
parent
e9290c3f98
commit
0bf3fcfbff
|
@ -261,7 +261,7 @@ export default class Editor extends Component {
|
||||||
// selected for editing)
|
// selected for editing)
|
||||||
if (currentAnnotation.bodies.length === 0 && !this.props.allowEmpty) {
|
if (currentAnnotation.bodies.length === 0 && !this.props.allowEmpty) {
|
||||||
if (currentAnnotation.isSelection)
|
if (currentAnnotation.isSelection)
|
||||||
onCancel();
|
this.onCancel();
|
||||||
else
|
else
|
||||||
this.props.onAnnotationDeleted(this.props.annotation);
|
this.props.onAnnotationDeleted(this.props.annotation);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue