From 3ffb19d0a0957ed3dbfc3d37b6ff4d5580c1515d Mon Sep 17 00:00:00 2001 From: MoLeft <41848811+MoLeft@users.noreply.github.com> Date: Sat, 9 Dec 2023 14:58:07 +0800 Subject: [PATCH] fix: Taginput bug (#1125) --- src/components/ui/TagInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/TagInput.tsx b/src/components/ui/TagInput.tsx index 910eb3f1..07310403 100644 --- a/src/components/ui/TagInput.tsx +++ b/src/components/ui/TagInput.tsx @@ -59,7 +59,7 @@ export function TagInput({ query === "" ? userTags : Array.from(new Set([query, ...userTags])).filter((tag) => - tag + (tag ?? '') .toString() .toLowerCase() .replace(/\s+/g, "")