Skip to content

Commit

Permalink
Merge pull request #1562 from gettakaro/handle-deleted-shop-listing-b…
Browse files Browse the repository at this point in the history
…etter

Handle click order when underlying listing is deleted
  • Loading branch information
emielvanseveren authored Sep 29, 2024
2 parents 72cc5f8 + 99096f8 commit a132dc8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,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 a132dc8

Please sign in to comment.