fix(channels): sanitize card data and format suffixes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user