From 8b68e102f4a6166f89b044b07ca80221b4fa7639 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 13 Dec 2024 17:03:13 +0000 Subject: [PATCH] Fix issue #7: Task 1 (Trial 4): Error viewing performance data --- src/components/PerformanceMockup.tsx | 4 ++-- src/performance/interfaceTypes.ts | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/PerformanceMockup.tsx b/src/components/PerformanceMockup.tsx index 960b1de..4aa7e60 100644 --- a/src/components/PerformanceMockup.tsx +++ b/src/components/PerformanceMockup.tsx @@ -29,7 +29,7 @@ export default function PerformanceMockup() { return
{result}
; } - const { recordingURL } = result; + const { recordingURL } = result.analysisResult; const recordingId = getRecordingId(); assert(recordingId); @@ -40,7 +40,7 @@ export default function PerformanceMockup() {
- {result.summaries.map((summary, index) => { + {result.analysisResult.summaries.map((summary, index) => { const props = { summary }; return ; })} diff --git a/src/performance/interfaceTypes.ts b/src/performance/interfaceTypes.ts index 57b314e..135d09b 100644 --- a/src/performance/interfaceTypes.ts +++ b/src/performance/interfaceTypes.ts @@ -241,8 +241,12 @@ export interface AnalysisPointError { } export interface PerformanceAnalysisResult { - spec: PerformanceAnalysisSpec; - summaries: OriginSummary[]; - errors: AnalysisPointError[]; - recordingURL: string; + analysisResult: { + spec: PerformanceAnalysisSpec; + summaries: OriginSummary[]; + errors: AnalysisPointError[]; + recordingURL: string; + }; + result: string; + version: number; }