diff --git a/resources/assets/js/components/TagInput.vue b/resources/assets/js/components/TagInput.vue index 5da6bfb..6c7908e 100644 --- a/resources/assets/js/components/TagInput.vue +++ b/resources/assets/js/components/TagInput.vue @@ -30,7 +30,7 @@ buffer: string = ""; created() { - bus.$on("add-tag", (tag: string) => this.tags.push(tag)); + bus.$on("add-tag", (tag: string) => this.tags.indexOf(tag) === -1 && this.tags.push(tag)); } onKeyDown(event: KeyboardEvent) { @@ -79,4 +79,4 @@ border: 0; outline: 0; } - \ No newline at end of file +