Skip to content

Commit

Permalink
fix: handle click order when underlying listing is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Sep 29, 2024
1 parent 77f80f5 commit 99096f8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ export const ShopOrderTableView: FC<ShopOrderTableView> = ({ gameServerId }) =>
id: 'listingId',
cell: (info) => (
<Link
disabled={!!info.row.original.listing?.deletedAt}
to="/gameserver/$gameServerId/shop/listing/$shopListingId/view"
params={{ gameServerId, shopListingId: info.getValue() }}
>
{info.row.original.listing?.deletedAt ? '[Deleted] ' : ''}
{info.row.original.listing?.name ?? info.row.original.listing?.items[0].item.name}
</Link>
),
Expand Down

0 comments on commit 99096f8

Please sign in to comment.