diff options
Diffstat (limited to 'src/ui/components/tags/TagEditor.vue')
-rw-r--r-- | src/ui/components/tags/TagEditor.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/components/tags/TagEditor.vue b/src/ui/components/tags/TagEditor.vue index da5617c82..426af20ec 100644 --- a/src/ui/components/tags/TagEditor.vue +++ b/src/ui/components/tags/TagEditor.vue @@ -145,10 +145,10 @@ export default { const annotationsToDelete = this.annotations.filter((annotation) => { return annotation.tags.includes(tagToRemove); }); - const result = await this.openmct.annotation.deleteAnnotations(annotationsToDelete); - this.$emit('tags-updated', annotationsToDelete); - - return result; + if (annotationsToDelete) { + await this.openmct.annotation.deleteAnnotations(annotationsToDelete); + this.$emit('tags-updated', annotationsToDelete); + } }, async tagAdded(newTag) { // Either undelete an annotation, or create one (1) new annotation |