From 98e55d07abfefb5bb0b81be7b150b6ca56864718 Mon Sep 17 00:00:00 2001 From: Jack Quinn <15806582+quinnovator@users.noreply.github.com> Date: Mon, 16 Sep 2024 14:14:26 -0400 Subject: [PATCH] fix(ui): Fixes V1 Run detail unnecessary reloading. Fixes #10590 (#11214) Signed-off-by: Jack Quinn Signed-off-by: sefgsefg --- frontend/src/pages/RunDetails.tsx | 5 +++++ frontend/src/pages/RunDetailsRouter.tsx | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/RunDetails.tsx b/frontend/src/pages/RunDetails.tsx index afca9e5f0a47..9d25c137fcbe 100644 --- a/frontend/src/pages/RunDetails.tsx +++ b/frontend/src/pages/RunDetails.tsx @@ -101,6 +101,7 @@ interface SelectedNodeDetails { // exported only for testing export interface RunDetailsInternalProps { + isLoading?: boolean; runId?: string; gkeMetadata: GkeMetadata; } @@ -237,6 +238,10 @@ class RunDetails extends Page { } public render(): JSX.Element { + if (this.props.isLoading) { + return
Currently loading run information
; + } + const { allArtifactConfigs, allowCustomVisualizations, diff --git a/frontend/src/pages/RunDetailsRouter.tsx b/frontend/src/pages/RunDetailsRouter.tsx index f9505233c8ea..ee6e0a970475 100644 --- a/frontend/src/pages/RunDetailsRouter.tsx +++ b/frontend/src/pages/RunDetailsRouter.tsx @@ -70,9 +70,5 @@ export default function RunDetailsRouter(props: RunDetailsProps) { } } - if (runIsFetching || templateStrIsFetching) { - return
Currently loading run information
; - } - - return ; + return ; }