fix a tags bug (#1037)

* fix a tags bug

Solved the problem of not being able to add tags

* fix: tags

a little change
This commit is contained in:
Shemol 2023-11-13 17:54:13 +08:00 committed by GitHub
parent 1496fa7177
commit 674b4d2eb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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