Merge pull request #8012 from ChantsovaEkaterina/bug/custom-translation-for-latest-keys-in-timeseries-not-applied
Fixed applying custom translation to labels of latest data keys in timeseries widgets
This commit is contained in:
commit
dd981cd340
@ -1402,6 +1402,7 @@ export class WidgetSubscription implements IWidgetSubscription {
|
||||
}));
|
||||
if (datasource.latestDataKeys) {
|
||||
datasourceDataArray = datasourceDataArray.concat(datasource.latestDataKeys.map((dataKey, latestKeyIndex) => {
|
||||
dataKey.label = this.ctx.utils.customTranslation(dataKey.label, dataKey.label);
|
||||
const datasourceData: DatasourceData = {
|
||||
datasource,
|
||||
dataKey,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user