🐛 fix(order): Update subscription cell to display name and quantity
This commit is contained in:
parent
2675034b75
commit
96eba171d5
@ -57,8 +57,13 @@ export default function Page(props: any) {
|
|||||||
{
|
{
|
||||||
accessorKey: 'subscribe_id',
|
accessorKey: 'subscribe_id',
|
||||||
header: t('subscribe'),
|
header: t('subscribe'),
|
||||||
cell: ({ row }) =>
|
cell: ({ row }) => {
|
||||||
subscribeList?.find((item) => item.id === row.getValue('subscribe_id'))?.name,
|
const name = subscribeList?.find(
|
||||||
|
(item) => item.id === row.getValue('subscribe_id'),
|
||||||
|
)?.name;
|
||||||
|
const quantity = row.original.quantity;
|
||||||
|
return name ? `${name} × ${quantity}` : '';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'amount',
|
accessorKey: 'amount',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user