fix build

This commit is contained in:
Anton Tranelis 2025-10-10 10:04:00 +02:00
parent 81667dd4ff
commit 0c5375c73e
3 changed files with 3 additions and 3 deletions

View File

@ -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 ?? '')

View File

@ -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) => (
<div

View File

@ -35,7 +35,7 @@ export const GroupSubHeaderView = ({
? shareBaseUrl + item.slug
: window.location.protocol + '//' + window.location.host + '/item/' + item.id
}
title={item.name}
title={item.name ?? ''}
platforms={platforms}
/>
</div>