Browse Source

Merge pull request #3475 from ChantsovaEkaterina/bug/hide-key-in-legend

Fix hiding keys in legend
pull/3490/head
Igor Kulikov 6 years ago
committed by GitHub
parent
commit
32b7ed5d8e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui-ngx/src/app/core/api/widget-subscription.ts

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

@ -1277,7 +1277,7 @@ export class WidgetSubscription implements IWidgetSubscription {
const index = startIndex + dataIndex * dataKeysCount + dataKeyIndex;
let update = true;
let currentData: DataSetHolder;
if (this.displayLegend && this.legendData.keys[index].dataKey.hidden) {
if (this.displayLegend && this.legendData.keys.find(key => key.dataIndex === index).dataKey.hidden) {
currentData = this.hiddenData[index];
} else {
currentData = this.data[index];

Loading…
Cancel
Save