From 46e11b7264871ab8793fb3f2d97e6e5f09dcdb2b Mon Sep 17 00:00:00 2001 From: smb2268 Date: Thu, 15 Aug 2024 14:43:29 -0400 Subject: [PATCH] Move navigate into onSuccess if run hasn't been closed yet --- app/src/pages/RunSummary/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/pages/RunSummary/index.tsx b/app/src/pages/RunSummary/index.tsx index 705fe918ed9..dd90dd32e21 100644 --- a/app/src/pages/RunSummary/index.tsx +++ b/app/src/pages/RunSummary/index.tsx @@ -212,14 +212,15 @@ export function RunSummary(): JSX.Element { const returnToQuickTransfer = (): void => { if (!isRunCurrent) { deleteRun(runId) + navigate('/quick-transfer') } else { closeCurrentRun({ onSuccess: () => { deleteRun(runId) + navigate('/quick-transfer') }, }) } - navigate('/quick-transfer') } // TODO(jh, 05-30-24): EXEC-487. Refactor reset() so we can redirect to the setup page, showing the shimmer skeleton instead.