From d6e9382eefdeb3d99f4b552f6647369faa6f4b28 Mon Sep 17 00:00:00 2001 From: stianjsu Date: Thu, 13 Jul 2023 16:54:36 +0200 Subject: [PATCH] fix(edit): platform code no longer displayed in select tile list --- next-tavla/src/Admin/scenarios/SelectTile/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/next-tavla/src/Admin/scenarios/SelectTile/index.tsx b/next-tavla/src/Admin/scenarios/SelectTile/index.tsx index 69aac9e735..0b7bd2d121 100644 --- a/next-tavla/src/Admin/scenarios/SelectTile/index.tsx +++ b/next-tavla/src/Admin/scenarios/SelectTile/index.tsx @@ -22,10 +22,7 @@ function QuayRadioOption({ tile }: { tile: TQuayTile }) { id: tile.placeId, }) - const name = - (data?.quay?.name ?? tile.placeId) + data?.quay?.publicCode - ? ' - ' + data?.quay?.publicCode - : '' + const name = data?.quay?.name ?? tile.placeId return }