From 0c5375c73ec4418167975daf49a22cc65578cb17 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Fri, 10 Oct 2025 10:04:00 +0200 Subject: [PATCH] fix build --- lib/src/Components/Map/UtopiaMapInner.tsx | 2 +- lib/src/Components/Profile/Subcomponents/ActionsButton.tsx | 2 +- lib/src/Components/Profile/Subcomponents/GroupSubHeaderView.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) => (