From 5d9487f88b7eb4e764ac3bef5df2bd2aab6b6953 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 13 Dec 2024 13:25:40 +0000 Subject: [PATCH] Fix issue #3: Task 1 (Trial 2): Error viewing performance data --- src/components/PerformanceMockup.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PerformanceMockup.tsx b/src/components/PerformanceMockup.tsx index 4316e96..7686c14 100644 --- a/src/components/PerformanceMockup.tsx +++ b/src/components/PerformanceMockup.tsx @@ -13,7 +13,7 @@ export default function PerformanceMockup({ recordingId, result }: PerformanceMo return
{result}
; } - const { recordingURL } = result; + const { recordingURL, summaries = [] } = result; return (
@@ -22,7 +22,7 @@ export default function PerformanceMockup({ recordingId, result }: PerformanceMo
- {result.summaries.map((summary, index) => { + {summaries.map((summary, index) => { const props = { summary }; return ; })}