Skip to content

Commit

Permalink
Properly apply type cast
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Erik Støwer <testower@gmail.com>
  • Loading branch information
leonardehrenfried and testower authored Oct 14, 2024
1 parent 79bb507 commit 180c447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/MapView/LayerControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLInputElement>('input.layer').forEach((input) => {
input.checked = groupInput.checked;
const event = new Event('change');
input.dispatchEvent(event);
Expand Down

0 comments on commit 180c447

Please sign in to comment.