fix : cant search by using name

This commit is contained in:
2026-08-30 07:01:07 +00:00 Unverified
parent 4f5885e4a1
commit 8ef702016b
+1 -1
View File
@@ -80,7 +80,7 @@ function CatalogPicker({ items, value, onChange, placeholder, rarityBackground =
<ComboboxContent>
<ComboboxEmpty>ไม่พบรายการ</ComboboxEmpty>
<ComboboxList>
{items.map((item) => <ComboboxItem key={item.key} value={item}><div className={cn("relative size-8 shrink-0 overflow-hidden rounded-md", rarityBackground && rarityGradientClass(item.rarity))}><Image src={item.imageUrl} alt="" fill className="object-contain" /></div>{item.name}</ComboboxItem>)}
{(item) => <ComboboxItem key={item.key} value={item}><div className={cn("relative size-8 shrink-0 overflow-hidden rounded-md", rarityBackground && rarityGradientClass(item.rarity))}><Image src={item.imageUrl} alt="" fill className="object-contain" /></div>{item.name}</ComboboxItem>}
</ComboboxList>
</ComboboxContent>
</Combobox>