Skip to content

Commit

Permalink
disable mmsi download when no available
Browse files Browse the repository at this point in the history
  • Loading branch information
j8seangel committed Aug 20, 2024
1 parent ea1bcd5 commit ffcc462
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/fishing-map/features/download/download.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit ffcc462

Please sign in to comment.