diff --git a/lib/src/Components/Map/UtopiaMapInner.tsx b/lib/src/Components/Map/UtopiaMapInner.tsx index 9b102a93..0ebed786 100644 --- a/lib/src/Components/Map/UtopiaMapInner.tsx +++ b/lib/src/Components/Map/UtopiaMapInner.tsx @@ -179,7 +179,7 @@ export function UtopiaMapInner({ document.title = `${document.title.split('-')[0]} - ${title}` document .querySelector('meta[property="og:title"]') - ?.setAttribute('content', ref.item.name) + ?.setAttribute('content', ref.item.name ?? '') document .querySelector('meta[property="og:description"]') ?.setAttribute('content', ref.item.text ?? '') diff --git a/lib/src/Components/Profile/Subcomponents/ActionsButton.tsx b/lib/src/Components/Profile/Subcomponents/ActionsButton.tsx index 8fab517e..1808b4fc 100644 --- a/lib/src/Components/Profile/Subcomponents/ActionsButton.tsx +++ b/lib/src/Components/Profile/Subcomponents/ActionsButton.tsx @@ -105,7 +105,7 @@ export function ActionButton({ .filter((item) => { return search === '' ? item - : item.name.toLowerCase().includes(search.toLowerCase()) + : item.name?.toLowerCase().includes(search.toLowerCase()) }) .map((i) => (