Skip to content

Commit

Permalink
fix(load-breach.js): get correct property for band_names
Browse files Browse the repository at this point in the history
  • Loading branch information
velomovies committed Oct 31, 2024
1 parent ea788a5 commit fe06bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/load-breach.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export async function getScenarioInfo (scenarioIds, featureInfoByScenarioId) {
return
}

const bandCounts = _.countBy(data.features.flatMap((x) => x.propertiesband_names))
const bandCounts = _.countBy(data.features.flatMap((x) => x.properties.band_names))

const featureCollectionProperties = _.get(data, 'properties', {})
featureCollectionProperties.bandCounts = bandCounts
Expand Down

0 comments on commit fe06bb7

Please sign in to comment.