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
+1
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, "")),