Skip to content

Commit 5f61fa0

Browse files
adds type annotation to attribute button
1 parent 81d8441 commit 5f61fa0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/PropertyMap.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Dispatch,
99
SetStateAction,
1010
ReactElement,
11+
ElementRef,
1112
} from 'react';
1213
import {
1314
maptilerApiKey,
@@ -444,7 +445,7 @@ const PropertyMap: FC<PropertyMapProps> = ({
444445
}}
445446
onLoad={(e) => {
446447
setMap(e.target);
447-
const attributionButton = document.querySelector(
448+
const attributionButton: HTMLElement | null = document.querySelector(
448449
'.maplibregl-ctrl-attrib-button'
449450
);
450451
if (attributionButton) {

0 commit comments

Comments
 (0)