From 65ff0c80a75804b5c6258a68b3cc4cee8dd89cc6 Mon Sep 17 00:00:00 2001 From: Mantra Date: Mon, 4 Sep 2023 14:02:24 +0100 Subject: [PATCH] lint --- app/static/src/app/components/options/TagInput.vue | 6 +++--- app/static/tests/unit/components/options/tagInput.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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]; } } });