From 26520a00d3eff4a29abc05ae476f542fc5fa76af Mon Sep 17 00:00:00 2001 From: ZhaiSoul <842607283@qq.com> Date: Fri, 8 Aug 2025 23:12:57 +0800 Subject: [PATCH] chore: use String function cover filterValues --- web/src/components/input/InputWithTags.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/input/InputWithTags.tsx b/web/src/components/input/InputWithTags.tsx index 21a7d2851..413dd64b1 100755 --- a/web/src/components/input/InputWithTags.tsx +++ b/web/src/components/input/InputWithTags.tsx @@ -420,11 +420,11 @@ export default function InputWithTags({ ? t("button.yes", { ns: "common" }) : t("button.no", { ns: "common" }); } else if (filterType === "labels") { - return getTranslatedLabel(filterValues as string); + return getTranslatedLabel(String(filterValues)); } else if (filterType === "search_type") { - return t("filter.searchType." + (filterValues as string)); + return t("filter.searchType." + String(filterValues)); } else { - return String(filterValues).replaceAll("_", " ") as string; + return String(filterValues).replaceAll("_", " "); } }