fix(channels): sanitize card data and format suffixes

This commit is contained in:
2026-09-28 14:26:22 +08:00
parent 99d4a85ece
commit ea4a54f5c6
4 changed files with 51 additions and 25 deletions
+9
View File
@@ -275,11 +275,20 @@ export function ChannelDialog({
cardBrandRequest.current += 1
setCardBrand((value as CardBrand | null) || "")
}}
itemToStringLabel={(brand: CardBrand) =>
brand ? CARD_BRAND_LABELS[brand] || brand : ""
}
itemToStringValue={(brand: CardBrand) =>
brand
? `${brand} ${CARD_BRAND_LABELS[brand] || ""}`
: ""
}
autoHighlight
>
<ComboboxInput
id="cardBrand"
placeholder="选择卡组织"
className="w-full"
disabled={isPending}
/>
<ComboboxContent>