From 094e6d0ab3cdb135b18c4b9435cded1eef9172eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 16 Aug 2024 14:09:31 +0200 Subject: [PATCH] Fallback for `protectedAreaType` in ABNJ table --- .../map/content/details/tables/national-highseas/useColumns.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/useColumns.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/useColumns.tsx index dd951d6b..aaf05e41 100644 --- a/frontend/src/containers/map/content/details/tables/national-highseas/useColumns.tsx +++ b/frontend/src/containers/map/content/details/tables/national-highseas/useColumns.tsx @@ -172,7 +172,7 @@ const useColumns = ({ filters, onFiltersChange }: UseColumnsProps) => { const formattedValue = protectionStatusOptions.find( (entry) => value === entry?.value )?.name; - return <>{formattedValue}; + return <>{formattedValue ?? '-'}; }, }, {