Fix markers are not removed when they should (BlueMap-Minecraft/BlueMap#207)

This commit is contained in:
Blue (Lukas Rieger) 2021-09-19 16:03:03 +02:00
parent ce57dfdda5
commit f70745f82b
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800
1 changed files with 2 additions and 2 deletions

View File

@ -120,8 +120,8 @@ export class MarkerFileManager extends MarkerManager {
// remove not updated Markers
markerSet.children.forEach((marker) => {
if (marker.isMarker && !updatedMarkers.has(marker) && !this.markers.has(marker.markerId)) {
this.removeMarker(marker.markerId);
if (marker.isMarker && !updatedMarkers.has(marker)) {
this.removeMarker(marker.data.id);
}
});