1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 07:52:43 +00:00

correct if no place find

This commit is contained in:
Laurent Gay 2024-11-21 17:47:09 +01:00 committed by setop
parent 368cdb9592
commit 9796304a9a

View file

@ -417,13 +417,17 @@ const userSettingsLocation = computed(() => {
coords.value,
placeName
);
return {
lat: coords.value?.latitude,
lon: coords.value?.longitude,
name: placeName,
picture: location?.pictureInfo,
isIPLocation: coords.value?.isIPLocation,
};
if (placeName) {
return {
lat: coords.value?.latitude,
lon: coords.value?.longitude,
name: placeName,
picture: location?.pictureInfo,
isIPLocation: coords.value?.isIPLocation,
};
} else {
return {};
}
});
const { result: currentUserLocationResult } = useQuery<{