Merge branch 'develop' into johannes/find-myself
This commit is contained in:
@@ -83,7 +83,7 @@ export const makeMapSiteLink = (coords: GeolocationCoordinates): string => {
|
||||
};
|
||||
|
||||
export const createMapSiteLinkFromEvent = (event: MatrixEvent): string => {
|
||||
const content: Object = event.getContent();
|
||||
const content = event.getContent();
|
||||
const mLocation = content[M_LOCATION.name];
|
||||
if (mLocation !== undefined) {
|
||||
const uri = mLocation["uri"];
|
||||
|
||||
@@ -37,7 +37,7 @@ export const useMap = ({ interactive, bodyId, onError }: UseMapProps): MapLibreM
|
||||
useEffect(
|
||||
() => {
|
||||
try {
|
||||
setMap(createMap(interactive, bodyId, onError));
|
||||
setMap(createMap(!!interactive, bodyId, onError));
|
||||
} catch (error) {
|
||||
onError?.(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user