diff --git a/app/static/src/app/components/options/TagInput.vue b/app/static/src/app/components/options/TagInput.vue index a236a3ea2..be23a2d4d 100644 --- a/app/static/src/app/components/options/TagInput.vue +++ b/app/static/src/app/components/options/TagInput.vue @@ -48,7 +48,7 @@ export default defineComponent({ onMounted(() => { if (cleanTags.value.length !== props.tags?.length) { - emit("update", cleanTags.value) + emit("update", cleanTags.value); } }); @@ -91,8 +91,8 @@ export default defineComponent({ } return undefined; }); - const cleanTags = parsedTags.filter((x) => x !== undefined); - emit("update", cleanTags); + const cleanedNewTags = parsedTags.filter((x) => x !== undefined); + emit("update", cleanedNewTags); }; const validate = (tag: string) => { diff --git a/app/static/tests/unit/components/options/tagInput.test.ts b/app/static/tests/unit/components/options/tagInput.test.ts index 1bd87140a..07fef97d8 100644 --- a/app/static/tests/unit/components/options/tagInput.test.ts +++ b/app/static/tests/unit/components/options/tagInput.test.ts @@ -72,7 +72,7 @@ describe("Tag Input", () => { }, computed: { cleanTags() { - return [1] + return [1]; } } });