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);