From c16561102e2f3ad2497059edc4b30234a0c912bb Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Mon, 15 Jul 2024 14:51:40 +0300 Subject: [PATCH] fix: lint Signed-off-by: Noam Gal --- .../components/workflow-details/workflow-details.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/src/app/workflows/components/workflow-details/workflow-details.tsx b/ui/src/app/workflows/components/workflow-details/workflow-details.tsx index 1fe4e5ec7b65..de1ae90cb5e8 100644 --- a/ui/src/app/workflows/components/workflow-details/workflow-details.tsx +++ b/ui/src/app/workflows/components/workflow-details/workflow-details.tsx @@ -196,7 +196,8 @@ export function WorkflowDetails({history, location, match}: RouteComponentProps< popup .confirm('Confirm', () => ) .then(async yes => { - if (!yes) return; + if (!yes) + return; const allPromises = []; if (isWorkflowInCluster(workflow)) { @@ -218,7 +219,8 @@ export function WorkflowDetails({history, location, match}: RouteComponentProps< setSidePanel('retry'); } else { popup.confirm('Confirm', `Are you sure you want to ${workflowOperation.title.toLowerCase()} this workflow?`).then(yes => { - if (!yes) return; + if (!yes) + return; workflowOperation.action(workflow).catch(setError); }); @@ -465,7 +467,8 @@ export function WorkflowDetails({history, location, match}: RouteComponentProps< function renderResumePopup() { return popup.confirm('Confirm', renderSuspendNodeOptions).then(yes => { - if (!yes) return; + if (!yes) + return; updateOutputParametersForNodeIfRequired() .then(resumeNode)