From 412206c2e7c2f5d01d710d9d39b2019467dad9ce Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 10 Jun 2020 15:49:52 +0200 Subject: [PATCH] Fix tags input Signed-off-by: Thomas Citharel --- js/src/components/Event/TagInput.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/components/Event/TagInput.vue b/js/src/components/Event/TagInput.vue index 62baef93b..bade41cf8 100644 --- a/js/src/components/Event/TagInput.vue +++ b/js/src/components/Event/TagInput.vue @@ -37,9 +37,10 @@ import { ITag } from "../../types/tag.model"; }, set(tagStrings) { const tagEntities = tagStrings.map((tag: string | ITag) => { - if (!(tag instanceof String)) { + if (typeof tag !== "string") { return tag; } + // @ts-ignore return { title: tag, slug: tag } as ITag; }); this.$emit("input", tagEntities);