Fix: display activities map FAB even if they lack coordinates
This commit is contained in:
@ -152,8 +152,8 @@ async function fetchData(isBackground = false) {
|
||||
Promise.all([
|
||||
routeStore.loadRoutes(undefined, false, isBackground),
|
||||
businessService.getAllBusinesses().then(b => {
|
||||
featuredActivities.value = b.filter(biz => biz.is_featured && biz.latitude && biz.longitude);
|
||||
if (showPromos.value) updatePromoMarkers();
|
||||
featuredActivities.value = b.filter(biz => biz.is_featured);
|
||||
if (showPromos.value || featuredActivities.value.length > 0) updatePromoMarkers();
|
||||
})
|
||||
]);
|
||||
|
||||
@ -382,7 +382,7 @@ async function updatePromoMarkers() {
|
||||
promoMarkers.value.forEach(m => m.setMap(null));
|
||||
const newMarkers: any[] = [];
|
||||
|
||||
const promosWithCoords = featuredActivities.value;
|
||||
const promosWithCoords = featuredActivities.value.filter(promo => promo.latitude && promo.longitude);
|
||||
|
||||
promosWithCoords.forEach(promo => {
|
||||
const marker = addMarker(
|
||||
|
||||
Reference in New Issue
Block a user