From 5bcbf4e911232992f28cd7f0c731f25f8789fcb3 Mon Sep 17 00:00:00 2001 From: Julian Meyer Date: Tue, 28 Oct 2025 15:54:11 -0700 Subject: [PATCH] feat: hide machine info if unavailable --- report/src/components/MachineInfo.tsx | 11 +---------- report/src/components/RunList.tsx | 16 ++-------------- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/report/src/components/MachineInfo.tsx b/report/src/components/MachineInfo.tsx index 1d6fbfd..e36723f 100644 --- a/report/src/components/MachineInfo.tsx +++ b/report/src/components/MachineInfo.tsx @@ -27,16 +27,7 @@ const MachineInfo = ({ machineInfo }: MachineInfoProps) => { !machineInfo.region && !machineInfo.fileSystem) ) { - return ( -
-

- Machine Information -

-

- Machine information not available for this benchmark run. -

-
- ); + return null; } const providerUrl = diff --git a/report/src/components/RunList.tsx b/report/src/components/RunList.tsx index c693887..52b5db6 100644 --- a/report/src/components/RunList.tsx +++ b/report/src/components/RunList.tsx @@ -340,21 +340,9 @@ const RunList = ({ {isExpanded && (
{/* Machine Information Section */} - {section.runs.length > 0 && ( + {section.runs[0]?.machineInfo && (
- {section.runs[0].machineInfo ? ( - - ) : ( -
-

- Machine Information -

-

- Machine information not available for this benchmark - run. -

-
- )} +
)}