From 48ba3fcd1e23cd1c4beab18a9e19d44deb2059af Mon Sep 17 00:00:00 2001 From: Erik Munson Date: Thu, 11 Apr 2019 22:14:15 -0700 Subject: [PATCH] fix(core/pipeline): un-shadow parameter (#6843) --- .../config/stages/waitForCondition/SkipConditionWait.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/modules/core/src/pipeline/config/stages/waitForCondition/SkipConditionWait.tsx b/app/scripts/modules/core/src/pipeline/config/stages/waitForCondition/SkipConditionWait.tsx index 137e0a02ac8..389b4b80c31 100644 --- a/app/scripts/modules/core/src/pipeline/config/stages/waitForCondition/SkipConditionWait.tsx +++ b/app/scripts/modules/core/src/pipeline/config/stages/waitForCondition/SkipConditionWait.tsx @@ -21,8 +21,8 @@ const skipRemainingWait = ( ): void => { const { confirmationModalService, executionService } = ReactInjector; (event.target as HTMLElement).blur(); // forces closing of the popover when the modal opens - const matcher = (execution: IExecution) => { - const match = execution.stages.find(test => test.id === stage.id); + const matcher = ({ stages }: IExecution) => { + const match = stages.find(test => test.id === stage.id); return match.status !== 'RUNNING'; };