diff --git a/agenta-web/src/components/Playground/ViewNavigation.tsx b/agenta-web/src/components/Playground/ViewNavigation.tsx index 2012454853..e1178de9c8 100644 --- a/agenta-web/src/components/Playground/ViewNavigation.tsx +++ b/agenta-web/src/components/Playground/ViewNavigation.tsx @@ -167,6 +167,9 @@ const ViewNavigation: React.FC = ({ } } + if (isLoading || isLogsLoading || !variantErrorLogs) + return + if (retrying || (!retriedOnce.current && netWorkError)) { return ( <> @@ -235,11 +238,7 @@ const ViewNavigation: React.FC = ({ const apiAddress = `${containerURI}/openapi.json` return (
- {!error ? null : isLogsLoading || !variantErrorLogs ? ( -
- -
- ) : ( + {error ? (

Error connecting to the variant {variant.variantName}.{" "} @@ -302,13 +301,13 @@ const ViewNavigation: React.FC = ({

- )} + ) : null}
) } return ( - + <> = ({ /> - + ) }