From 180c44772c330f544de4575b8083ce8efaf94099 Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Mon, 14 Oct 2024 12:20:09 +0200 Subject: [PATCH] Properly apply type cast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tom Erik Støwer --- 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 3b7c239747a..50421f406ff 100644 --- a/client/src/components/MapView/LayerControl.tsx +++ b/client/src/components/MapView/LayerControl.tsx @@ -95,7 +95,7 @@ class LayerControl implements IControl { const groupInput = document.createElement('input'); groupInput.onchange = () => { groupDiv.querySelectorAll('input.layer').forEach((i) => { - const input = i as HTMLInputElement; + groupDiv.querySelectorAll('input.layer').forEach((input) => { input.checked = groupInput.checked; const event = new Event('change'); input.dispatchEvent(event);