diff --git a/app/api/missions/route.ts b/app/api/missions/route.ts index f11a375d..2124acb0 100644 --- a/app/api/missions/route.ts +++ b/app/api/missions/route.ts @@ -59,6 +59,7 @@ export async function GET(request: Request) { projection: true, participation: true, services: true, + intention: true, createdAt: true, creator: { select: { diff --git a/app/missions/page.tsx b/app/missions/page.tsx index 2cd05613..be147c2b 100644 --- a/app/missions/page.tsx +++ b/app/missions/page.tsx @@ -52,8 +52,8 @@ export default function MissionsPage() { throw new Error('Failed to fetch missions'); } const data = await response.json(); - // Debug log to check mission data structure - console.log("Mission data:", data.missions); + // Debug log to check mission data structure including intention + console.log("Mission data with intention:", data.missions); setMissions(data.missions || []); } catch (error) { console.error('Error fetching missions:', error); @@ -273,7 +273,9 @@ export default function MissionsPage() { {/* Description text (can be added from mission data) */}