mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
#1564 : correct homepage default filtering + add debug log for testing
This commit is contained in:
parent
227c9034ae
commit
844642aff5
2 changed files with 10 additions and 1 deletions
|
@ -123,7 +123,7 @@ const eventsQuery = useQuery<{
|
|||
orderBy: EventSortField.BEGINS_ON,
|
||||
direction: SortDirection.ASC,
|
||||
longevents: false,
|
||||
location: geoHash.value,
|
||||
location: geoHash.value ?? "",
|
||||
radius: distance.value,
|
||||
limit: 93,
|
||||
}));
|
||||
|
|
|
@ -411,6 +411,11 @@ const { result: reverseGeocodeResult } = useQuery<{
|
|||
const userSettingsLocation = computed(() => {
|
||||
const location = reverseGeocodeResult.value?.reverseGeocode[0];
|
||||
const placeName = location?.locality ?? location?.region ?? location?.country;
|
||||
console.debug(
|
||||
"userSettingsLocation from reverseGeocode",
|
||||
location,
|
||||
placeName
|
||||
);
|
||||
return {
|
||||
lat: coords.value?.latitude,
|
||||
lon: coords.value?.longitude,
|
||||
|
@ -426,6 +431,10 @@ const { result: currentUserLocationResult } = useQuery<{
|
|||
|
||||
// The user's location currently in the Apollo cache
|
||||
const currentUserLocation = computed(() => {
|
||||
console.debug(
|
||||
"currentUserLocation from LocationType",
|
||||
currentUserLocationResult.value
|
||||
);
|
||||
return {
|
||||
...(currentUserLocationResult.value?.currentUserLocation ?? {
|
||||
lat: undefined,
|
||||
|
|
Loading…
Reference in a new issue