From 641e8ce1ed812915067aa3124532a5d33a61a82b Mon Sep 17 00:00:00 2001 From: Luc Claustres Date: Fri, 22 Nov 2024 10:52:56 +0100 Subject: [PATCH] fix: incorrect timeseries title with compound feature labels --- src/utils/utils.time-series.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/utils.time-series.js b/src/utils/utils.time-series.js index b2eec665..f3678e62 100644 --- a/src/utils/utils.time-series.js +++ b/src/utils/utils.time-series.js @@ -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)