From 3f195327ea6615ee395c140c85c2ec990ee02179 Mon Sep 17 00:00:00 2001 From: neobooru <50623835+neobooru@users.noreply.github.com> Date: Sat, 12 Jun 2021 01:17:25 +0200 Subject: [PATCH] Don't add empty tags from the input box --- src/popup/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/popup/App.vue b/src/popup/App.vue index 3096eb7..2b20a38 100644 --- a/src/popup/App.vue +++ b/src/popup/App.vue @@ -253,7 +253,7 @@ export default Vue.extend({ if (this.selectedPost) { const tagName = this.addTagInput; this.addTagInput = ""; - if (this.selectedPost.tags.find((x) => x.name == tagName) == undefined) { + if (tagName.length > 0 && this.selectedPost.tags.find((x) => x.name == tagName) == undefined) { this.selectedPost.tags.push(new ScrapedTag(tagName)); } }