diff --git a/src/api/kbench.ts b/src/api/kbench.ts index 6a19fca..6cdbb0a 100644 --- a/src/api/kbench.ts +++ b/src/api/kbench.ts @@ -77,8 +77,7 @@ export const KBENCH_STORAGE_CLASS_ANNOTATION = 'tns-csi.headlamp/storage-class'; // --------------------------------------------------------------------------- function shortId(): string { - return Math.random().toString(36) - .slice(2, 8); + return Math.random().toString(36).slice(2, 8); } export function generateJobName(): string { diff --git a/src/components/BenchmarkPage.tsx b/src/components/BenchmarkPage.tsx index f0e3abe..cebd020 100644 --- a/src/components/BenchmarkPage.tsx +++ b/src/components/BenchmarkPage.tsx @@ -828,7 +828,9 @@ export default function BenchmarkPage() { } catch (err: unknown) { setBenchState({ status: 'failed', - error: `Cleanup error: ${err instanceof Error ? err.message : String(err)}`, + error: `Cleanup error: ${ + err instanceof Error ? err.message : String(err) + }`, jobName: state.jobName, pvcName: state.pvcName, }); diff --git a/src/components/OverviewPage.tsx b/src/components/OverviewPage.tsx index 4e2a938..b989456 100644 --- a/src/components/OverviewPage.tsx +++ b/src/components/OverviewPage.tsx @@ -256,19 +256,19 @@ export default function OverviewPage() { }, ...(pvcStatusCounts.Pending > 0 ? [ - { - name: 'PVCs (Pending)', - value: {pvcStatusCounts.Pending}, - }, - ] + { + name: 'PVCs (Pending)', + value: {pvcStatusCounts.Pending}, + }, + ] : []), ...(pvcStatusCounts.Lost > 0 ? [ - { - name: 'PVCs (Lost)', - value: {pvcStatusCounts.Lost}, - }, - ] + { + name: 'PVCs (Lost)', + value: {pvcStatusCounts.Lost}, + }, + ] : []), ]} />