From 5f7712b8b5135a3bf16709ed0e4a2cffa1c68470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Zbytovsk=C3=BD?= Date: Mon, 7 Oct 2024 10:27:36 +0200 Subject: [PATCH] fix import --- src/components/FeaturePanel/PublicTransport/PublicTransport.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FeaturePanel/PublicTransport/PublicTransport.tsx b/src/components/FeaturePanel/PublicTransport/PublicTransport.tsx index 2abbb0712..e48a76749 100644 --- a/src/components/FeaturePanel/PublicTransport/PublicTransport.tsx +++ b/src/components/FeaturePanel/PublicTransport/PublicTransport.tsx @@ -68,7 +68,7 @@ const PublicTransportInner = () => { source?.setData(data.geoJson); return () => { - source?.setData(EMPTY_GEOJSON_SOURCE.data); + source?.setData({ type: 'FeatureCollection', features: [] }); }; }, [data]);