diff --git a/web/src/plugins/radio/RadioTab.tsx b/web/src/plugins/radio/RadioTab.tsx index 0592732..95e5e10 100644 --- a/web/src/plugins/radio/RadioTab.tsx +++ b/web/src/plugins/radio/RadioTab.tsx @@ -65,7 +65,7 @@ export default function RadioTab({ data }: { data: any }) { const [favorites, setFavorites] = useState([]); const [showFavorites, setShowFavorites] = useState(false); const [playingLoading, setPlayingLoading] = useState(false); - const searchTimeout = useRef>(); + const searchTimeout = useRef>(undefined); // ── Fetch initial data ── useEffect(() => { @@ -93,7 +93,7 @@ export default function RadioTab({ data }: { data: any }) { }, [data]); // ── Point click handler (stable ref) ── - const handlePointClickRef = useRef<(point: any) => void>(); + const handlePointClickRef = useRef<(point: any) => void>(undefined); handlePointClickRef.current = (point: any) => { setSelectedPlace(point); setShowFavorites(false); @@ -117,7 +117,7 @@ export default function RadioTab({ data }: { data: any }) { return; } - const globe = Globe()(containerRef.current) + const globe = new Globe(containerRef.current) .globeImageUrl('//unpkg.com/three-globe/example/img/earth-night.jpg') .backgroundColor('rgba(0,0,0,0)') .atmosphereColor('rgba(230, 126, 34, 0.25)')