Skip to content

Commit

Permalink
Favorites refetch
Browse files Browse the repository at this point in the history
  • Loading branch information
matherg committed Jul 31, 2024
1 parent a747f5f commit 4274bba
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
Empty file modified .husky/pre-commit
100755 → 100644
Empty file.
4 changes: 3 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ const Home: NextPage<any> = () => {
const { data: user = null } = trpc.user.me.useQuery();
const { data: recommendations = [] } =
trpc.user.recommendations.me.useQuery();
const { data: favorites = [] } = trpc.user.favorites.me.useQuery();
const { data: favorites = [] } = trpc.user.favorites.me.useQuery(undefined, {
refetchOnMount: true,
});
const { data: requests = { sent: [], received: [] } } =
trpc.user.requests.me.useQuery();

Expand Down
1 change: 0 additions & 1 deletion src/utils/map/addClusters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const addClusters = (map: Map, geoJsonUsers: GeoJsonUsers) => {
"text-size": 12,
},
});
console.log("Adding source to map with GeoJSON data:", geoJsonUsers); // Log GeoJSON data

// Add Driver Locations
map.loadImage(OrangeSquare.src, (error, orangeImage) => {
Expand Down
2 changes: 0 additions & 2 deletions src/utils/map/addMapEvents.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {
GeoJSONSource,
Map,
MapLayerEventType,
MapLayerMouseEvent,
NavigationControl,
Popup,
} from "mapbox-gl";
import { PublicUser } from "../types";
import { User } from "../types";
Expand Down
Empty file modified vercel.sh
100755 → 100644
Empty file.

0 comments on commit 4274bba

Please sign in to comment.