From 868a39bff4feff416ce98324fe3c9b3f9c48f733 Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Mon, 20 May 2024 23:10:54 +0100 Subject: [PATCH] removed redundant code --- agenta-web/src/components/Playground/ViewNavigation.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/agenta-web/src/components/Playground/ViewNavigation.tsx b/agenta-web/src/components/Playground/ViewNavigation.tsx index 730ba8f90f..489ebd2c17 100644 --- a/agenta-web/src/components/Playground/ViewNavigation.tsx +++ b/agenta-web/src/components/Playground/ViewNavigation.tsx @@ -96,12 +96,7 @@ const ViewNavigation: React.FC = ({ if (netWorkError) { retriedOnce.current = true setRetrying(true) - const waitForAppPromise = waitForAppToStart({ - appId, - variant, - timeout: isDemo() ? 40000 : 6000, - }) - waitForAppPromise + waitForAppToStart({appId, variant, timeout: isDemo() ? 40000 : 6000}) .then((result) => { if (result) { stopperRef.current = result.stopper