Skip to content

Commit

Permalink
fix(load-breach): make sure content is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
velomovies committed Jan 10, 2025
1 parent df8a508 commit 0495641
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/load-breach.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function computeCombinedScenario (scenarioIds, band, layerSetId) {
bands = _.filter(bands)

// convert bands to layerlike objects
const layers = _.map(bands, (band) => {
const layers = bands.map((band) => {
// if it looks like a layer, then it is a layer
// lookup the translation
const bandNl = _.get(BREACH_LAYERS_EN, band.band)
Expand All @@ -78,15 +78,15 @@ export async function computeCombinedScenario (scenarioIds, band, layerSetId) {
band.metadata = _.clone(band)
band.map = {
type: 'tile',
url: band.url
url: band.url,
namespace: 'LIWO_MEGO',
}
const layer = {
id: band.mapid,
variants: [band],
title: title,
legend: {
title: 'Gecombineerd Scenario [-]',
namespace: 'LIWO_MEGO'
}
}
return layer
Expand Down

0 comments on commit 0495641

Please sign in to comment.