From b0372b3525bff2aed96051f6d7126bf1ff570983 Mon Sep 17 00:00:00 2001 From: Chantsova Ekaterina Date: Tue, 15 Sep 2020 19:51:40 +0300 Subject: [PATCH] Fix hiding keys in legend --- ui-ngx/src/app/core/api/widget-subscription.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/core/api/widget-subscription.ts b/ui-ngx/src/app/core/api/widget-subscription.ts index bb594f0802..9d046bbf83 100644 --- a/ui-ngx/src/app/core/api/widget-subscription.ts +++ b/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];