Skip to content

Commit

Permalink
fix: incorrect timeseries title with compound feature labels
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Nov 22, 2024
1 parent f32dcec commit 641e8ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/utils.time-series.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export async function updateTimeSeries (previousTimeSeries) {
}
if (hasSelectedItems()) {
getSelectedItems().forEach(item => {
const featureLabel = _.get(item, `feature.properties.${item.layer.featureLabel || 'name'}`)
const featureId = kMapUtils.getFeatureId(item.feature, item.layer)
const featureLabel = kMapUtils.getFeatureLabel(item.feature, item.layer)
const label = (_.has(item, 'layer.probe') ?
`${activity.forecastModel.label} (${item.layer.label} - ${featureLabel})` + featureLevel :
`${item.layer.label} - ${featureLabel}` + featureLevel)
Expand Down

0 comments on commit 641e8ce

Please sign in to comment.