Skip to content

Commit

Permalink
Use every for keyworklist coverage check
Browse files Browse the repository at this point in the history
  • Loading branch information
hvangeffen committed Jun 18, 2024
1 parent 66aee43 commit da67ec7
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/components/spatialdisplay/SpatialDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,11 @@ const maxValuesTimeSeries = useWmsMaxValuesTimeSeries(
end,
)
const onlyCoverageLayersAvailable = computed(() => {
if (
layerCapabilities.value?.keywordList !== undefined &&
layerCapabilities.value?.keywordList.length > 0
) {
layerCapabilities.value.keywordList.forEach((keyword) => {
if (keyword.type != 'COVERAGE') return false
})
return true
}
return false
})
const onlyCoverageLayersAvailable = computed(() =>
layerCapabilities.value?.keywordList?.every(
(keyword) => keyword.type === 'COVERAGE',
),
)
function getFilterActionsFilter(): filterActionsFilter &
UseDisplayConfigOptions {
Expand Down

0 comments on commit da67ec7

Please sign in to comment.