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); }