fix: Taginput bug (#1125)

This commit is contained in:
MoLeft 2023-12-09 14:58:07 +08:00 committed by GitHub
parent 7cd58fcba5
commit 3ffb19d0a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ export function TagInput({
query === ""
? userTags
: Array.from(new Set([query, ...userTags])).filter((tag) =>
tag
(tag ?? '')
.toString()
.toLowerCase()
.replace(/\s+/g, "")