Skip to content

Commit

Permalink
IOTMAPCOMP-183 - problème de suppression des clusters (idem pour les …
Browse files Browse the repository at this point in the history
…markers)
  • Loading branch information
sandrinegateau committed Jun 24, 2021
1 parent e999bcf commit 26b98e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/iotMapManager/src/iot-map-cluster-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ export class IotMapClusterManager {
const clusterToRemove: IotMapCluster = this.clustersObjects[clusterId]
if (clusterToRemove) {
clusterToRemove.removeCluster()
const index = this.clustersObjects.indexOf(clusterToRemove, 0)
if (index > -1) {
this.clustersObjects.splice(index, 1)
}
delete this.clustersObjects[clusterId]
}
}
}
Expand Down
6 changes: 1 addition & 5 deletions src/iotMapManager/src/iot-map-marker-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ export class IotMapMarkerManager {
const markerToRemove: IotMapMarker = this.markersObjects[markerId]
if (markerToRemove) {
markerToRemove.removeMarker()

const index = this.markersObjects.indexOf(markerToRemove, 0)
if (index > -1) {
this.markersObjects.splice(index, 1)
}
delete this.markersObjects[markerId]
}
}

Expand Down

0 comments on commit 26b98e0

Please sign in to comment.