From f82c07f241ce609d23d26a4f04230e3b88f2db3b Mon Sep 17 00:00:00 2001 From: Nastya Rusina Date: Fri, 1 Apr 2022 17:21:53 -0700 Subject: [PATCH] chore: fix retryAttemptCheck Signed-off-by: Nastya Rusina --- src/components/Executions/TaskExecutionsList/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Executions/TaskExecutionsList/utils.ts b/src/components/Executions/TaskExecutionsList/utils.ts index aad1ce3fc..8d71d2809 100644 --- a/src/components/Executions/TaskExecutionsList/utils.ts +++ b/src/components/Executions/TaskExecutionsList/utils.ts @@ -9,7 +9,7 @@ import { TaskExecution } from 'models/Execution/types'; export function getUniqueTaskExecutionName({ id }: TaskExecution) { const { name } = id.taskId; const { retryAttempt } = id; - const suffix = retryAttempt > 0 ? ` (${retryAttempt + 1})` : ''; + const suffix = retryAttempt && retryAttempt > 0 ? ` (${retryAttempt + 1})` : ''; return `${name}${suffix}`; }