From c865a9e8ccef5f4b9f0b833de002da8fa21de091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hartmut=20N=C3=B6renberg?= Date: Tue, 24 Mar 2026 09:04:19 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20ScenarioPlanner=20resources.map=20crash?= =?UTF-8?q?=20=E2=80=94=20extract=20array=20from=20query=20result?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit resource.list returns { resources: [...], total } but ScenarioPlanner expected a flat array. Fixed by extracting .resources from the response. Co-Authored-By: claude-flow --- apps/web/src/app/(app)/projects/[id]/scenario/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/(app)/projects/[id]/scenario/page.tsx b/apps/web/src/app/(app)/projects/[id]/scenario/page.tsx index 2bc0aeb..3efee4e 100644 --- a/apps/web/src/app/(app)/projects/[id]/scenario/page.tsx +++ b/apps/web/src/app/(app)/projects/[id]/scenario/page.tsx @@ -50,8 +50,8 @@ export default async function ScenarioPage({ params }: ScenarioPageProps) { );