Add ? to item references

This commit is contained in:
Maximilian Harz 2025-02-10 23:40:45 +01:00
parent 23145b0a14
commit b9295128fd
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ export const SearchControl = () => {
return (
value.length > 2 &&
((item.layer?.listed && item.name.toLowerCase().includes(value.toLowerCase())) ||
item.text.toLowerCase().includes(value.toLowerCase()))
item.text?.toLowerCase().includes(value.toLowerCase()))
)
}),
)

View File

@ -147,7 +147,7 @@ export function UtopiaMapInner({
?.setAttribute('content', ref.item.name)
document
.querySelector('meta[property="og:description"]')
?.setAttribute('content', ref.item.text)
?.setAttribute('content', ref.item.text ?? '')
}
}
}