From 81667dd4ff8678b29d3a7247e64f9197703230ef Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Fri, 10 Oct 2025 09:53:43 +0200 Subject: [PATCH] fix build --- lib/src/Components/Map/Subcomponents/Controls/SearchControl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Components/Map/Subcomponents/Controls/SearchControl.tsx b/lib/src/Components/Map/Subcomponents/Controls/SearchControl.tsx index fb3d33d8..8f50b056 100644 --- a/lib/src/Components/Map/Subcomponents/Controls/SearchControl.tsx +++ b/lib/src/Components/Map/Subcomponents/Controls/SearchControl.tsx @@ -79,7 +79,7 @@ export const SearchControl = () => { items.filter((item) => { return ( value.length > 2 && - ((item.layer?.listed && item.name.toLowerCase().includes(value.toLowerCase())) || + ((item.layer?.listed && item.name?.toLowerCase().includes(value.toLowerCase())) || item.text?.toLowerCase().includes(value.toLowerCase())) ) }),