From eaef04a0a02c802500310dc5f8403707be3c2fbb Mon Sep 17 00:00:00 2001 From: Johnny Date: Sat, 20 Dec 2025 11:55:00 +0800 Subject: [PATCH] chore: fix linter --- web/src/components/LeafletMap.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/LeafletMap.tsx b/web/src/components/LeafletMap.tsx index 083c387af..304b2c912 100644 --- a/web/src/components/LeafletMap.tsx +++ b/web/src/components/LeafletMap.tsx @@ -111,7 +111,7 @@ const ControlButtons = ({ position, onZoomIn, onZoomOut, onOpenGoogleMaps }: Con // Custom Leaflet Control class class MapControlsContainer extends L.Control { - private container: HTMLDivElement | null = null; + private container: HTMLDivElement | undefined = undefined; onAdd() { this.container = L.DomUtil.create("div", ""); @@ -125,7 +125,7 @@ class MapControlsContainer extends L.Control { } onRemove() { - this.container = null; + this.container = undefined; } getContainer() {