diff --git a/frontend/src/routes/(app)/planner/+page.server.ts b/frontend/src/routes/(app)/planner/+page.server.ts index e318cf4..15f6c15 100644 --- a/frontend/src/routes/(app)/planner/+page.server.ts +++ b/frontend/src/routes/(app)/planner/+page.server.ts @@ -2,6 +2,7 @@ import type { PageServerLoad, Actions } from './$types'; import { apiClient } from '$lib/server/api'; import { getWeekStart } from '$lib/planner/week'; import { addSlotAction, updateSlotAction, deleteSlotAction } from '$lib/server/slotActions'; +import type { TagItem } from '$lib/planner/types'; export const load: PageServerLoad = async ({ fetch, url }) => { const weekParam = url.searchParams.get('week'); @@ -22,7 +23,7 @@ export const load: PageServerLoad = async ({ fetch, url }) => { cookTimeMin: r.cookTimeMin, effort: r.effort, heroImageUrl: r.heroImageUrl, - tags: (r.tags ?? []).map((t: any) => ({ id: t.id, name: t.name, tagType: t.tagType })) + tags: (r.tags ?? []).map((t: TagItem) => ({ id: t.id, name: t.name, tagType: t.tagType })) })); if (weekPlanResult.error || !weekPlanResult.data?.id) {