From 79bb50742370af8aedf2c1bdb3e66992f49f8030 Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Mon, 14 Oct 2024 12:11:50 +0200 Subject: [PATCH] Call method on correct variable --- client/src/components/MapView/LayerControl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/MapView/LayerControl.tsx b/client/src/components/MapView/LayerControl.tsx index b5c53ddd6c5..3b7c239747a 100644 --- a/client/src/components/MapView/LayerControl.tsx +++ b/client/src/components/MapView/LayerControl.tsx @@ -98,7 +98,7 @@ class LayerControl implements IControl { const input = i as HTMLInputElement; input.checked = groupInput.checked; const event = new Event('change'); - i.dispatchEvent(event); + input.dispatchEvent(event); }); }; groupInput.type = 'checkbox';