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,
|
orderBy: EventSortField.BEGINS_ON,
|
||||||
direction: SortDirection.ASC,
|
direction: SortDirection.ASC,
|
||||||
longevents: false,
|
longevents: false,
|
||||||
location: geoHash.value,
|
location: geoHash.value ?? "",
|
||||||
radius: distance.value,
|
radius: distance.value,
|
||||||
limit: 93,
|
limit: 93,
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -411,6 +411,11 @@ const { result: reverseGeocodeResult } = useQuery<{
|
||||||
const userSettingsLocation = computed(() => {
|
const userSettingsLocation = computed(() => {
|
||||||
const location = reverseGeocodeResult.value?.reverseGeocode[0];
|
const location = reverseGeocodeResult.value?.reverseGeocode[0];
|
||||||
const placeName = location?.locality ?? location?.region ?? location?.country;
|
const placeName = location?.locality ?? location?.region ?? location?.country;
|
||||||
|
console.debug(
|
||||||
|
"userSettingsLocation from reverseGeocode",
|
||||||
|
location,
|
||||||
|
placeName
|
||||||
|
);
|
||||||
return {
|
return {
|
||||||
lat: coords.value?.latitude,
|
lat: coords.value?.latitude,
|
||||||
lon: coords.value?.longitude,
|
lon: coords.value?.longitude,
|
||||||
|
@ -426,6 +431,10 @@ const { result: currentUserLocationResult } = useQuery<{
|
||||||
|
|
||||||
// The user's location currently in the Apollo cache
|
// The user's location currently in the Apollo cache
|
||||||
const currentUserLocation = computed(() => {
|
const currentUserLocation = computed(() => {
|
||||||
|
console.debug(
|
||||||
|
"currentUserLocation from LocationType",
|
||||||
|
currentUserLocationResult.value
|
||||||
|
);
|
||||||
return {
|
return {
|
||||||
...(currentUserLocationResult.value?.currentUserLocation ?? {
|
...(currentUserLocationResult.value?.currentUserLocation ?? {
|
||||||
lat: undefined,
|
lat: undefined,
|
||||||
|
|
Loading…
Reference in a new issue