From a75ef6d05b78e5ec8cfc440dfca833513b3dc7e9 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 21 Nov 2021 12:48:08 +0300 Subject: [PATCH] check if element is there --- modules/load.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/load.js b/modules/load.js index a03b9523..4f122b2d 100644 --- a/modules/load.js +++ b/modules/load.js @@ -920,7 +920,7 @@ function parseLoadedData(data) { }); markersGroup.style.display = null; - defs.remove(); + defs?.remove(); markerElements.forEach(el => el.remove()); if (layerIsOn("markers")) drawMarkers(); }