diff --git a/apps/fishing-map/features/download/download.utils.ts b/apps/fishing-map/features/download/download.utils.ts index 223fcee6d4..eaf17eba7f 100644 --- a/apps/fishing-map/features/download/download.utils.ts +++ b/apps/fishing-map/features/download/download.utils.ts @@ -34,8 +34,10 @@ export function getSupportedGroupByOptions( if (!options?.length) { return [] } + const mmsiSupported = vesselDatasets.every((dataset) => { - return getDatasetSchemaItem(dataset, 'mmsi') !== undefined + const schemaItem = getDatasetSchemaItem(dataset, 'mmsi') + return schemaItem !== null && schemaItem !== undefined }) return options.map((option) => {