We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81d8441 commit 5f61fa0Copy full SHA for 5f61fa0
src/components/PropertyMap.tsx
@@ -8,6 +8,7 @@ import {
8
Dispatch,
9
SetStateAction,
10
ReactElement,
11
+ ElementRef,
12
} from 'react';
13
import {
14
maptilerApiKey,
@@ -444,7 +445,7 @@ const PropertyMap: FC<PropertyMapProps> = ({
444
445
}}
446
onLoad={(e) => {
447
setMap(e.target);
- const attributionButton = document.querySelector(
448
+ const attributionButton: HTMLElement | null = document.querySelector(
449
'.maplibregl-ctrl-attrib-button'
450
);
451
if (attributionButton) {
0 commit comments