From c639e9c3b84ab166a94c3102348430a5561010a8 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Mon, 18 May 2020 22:39:06 +0300 Subject: [PATCH] Refactoring --- .../app/modules/home/components/widget/lib/maps/leaflet-map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts index 8ee031d433..a1280fef13 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts @@ -345,8 +345,8 @@ export default abstract class LeafletMap { updatePolylines(polyData: FormattedData[][], data?: FormattedData) { polyData.forEach((dataSource) => { - data = data || dataSource[0]; if (dataSource.length) { + data = data || dataSource[0]; if (this.polylines.get(data.$datasource.entityName)) { this.updatePolyline(data, dataSource, this.options); }