Showing
1 changed file
with
1 additions
and
1 deletions
@@ -345,8 +345,8 @@ export default abstract class LeafletMap { | @@ -345,8 +345,8 @@ export default abstract class LeafletMap { | ||
345 | 345 | ||
346 | updatePolylines(polyData: FormattedData[][], data?: FormattedData) { | 346 | updatePolylines(polyData: FormattedData[][], data?: FormattedData) { |
347 | polyData.forEach((dataSource) => { | 347 | polyData.forEach((dataSource) => { |
348 | - data = data || dataSource[0]; | ||
349 | if (dataSource.length) { | 348 | if (dataSource.length) { |
349 | + data = data || dataSource[0]; | ||
350 | if (this.polylines.get(data.$datasource.entityName)) { | 350 | if (this.polylines.get(data.$datasource.entityName)) { |
351 | this.updatePolyline(data, dataSource, this.options); | 351 | this.updatePolyline(data, dataSource, this.options); |
352 | } | 352 | } |