fix: expliciete type voor tasks.map callback in planning page

This commit is contained in:
Janpeter Visser 2026-04-24 14:46:38 +02:00
parent 5b225e744d
commit d9692f908a

View file

@ -50,7 +50,7 @@ export default async function SprintPlanningPage({ params }: Props) {
// Tasks by story
const tasksByStory: Record<string, Task[]> = {}
for (const story of sprintStories) {
tasksByStory[story.id] = story.tasks.map(t => ({
tasksByStory[story.id] = story.tasks.map((t: (typeof story.tasks)[number]) => ({
id: t.id,
title: t.title,
description: t.description,