Fix crash with bad location uri (#2746)
fix crash with bad location uri
This commit is contained in:
parent
d679e68501
commit
2eb5a9a616
2 changed files with 17 additions and 7 deletions
|
|
@ -389,6 +389,8 @@ export function MLocation({ content }: MLocationProps) {
|
|||
const geoUri = content.geo_uri;
|
||||
if (typeof geoUri !== 'string') return <BrokenContent />;
|
||||
const location = parseGeoUri(geoUri);
|
||||
if (!location) return <BrokenContent />;
|
||||
|
||||
return (
|
||||
<Box direction="Column" alignItems="Start" gap="100">
|
||||
<Text size="T400">{geoUri}</Text>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue