Browse Source

Refactoring

pull/2792/head
Vladyslav_Prykhodko 6 years ago
parent
commit
c639e9c3b8
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts

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

Loading…
Cancel
Save