Browse Source

UI: fixed applying custom translation to labels of latest data keys in timeseries widgets

pull/8012/head
Chantsova Ekaterina 4 years ago
parent
commit
3255e48cac
  1. 1
      ui-ngx/src/app/core/api/widget-subscription.ts

1
ui-ngx/src/app/core/api/widget-subscription.ts

@ -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…
Cancel
Save