From 3461f6bf5b4b42f0b3e10f04d0c3c5c562a02460 Mon Sep 17 00:00:00 2001 From: Jack Nam Date: Fri, 22 Dec 2023 09:47:12 -0800 Subject: [PATCH] Update comment --- src/libs/actions/Task.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/Task.js b/src/libs/actions/Task.js index d138cc75f8f5..a6d69186a98a 100644 --- a/src/libs/actions/Task.js +++ b/src/libs/actions/Task.js @@ -720,7 +720,7 @@ function deleteTask(taskReportID, taskTitle, originalStateNum, originalStatusNum const parentReportAction = ReportActionsUtils.getParentReportAction(taskReport); const parentReport = ReportUtils.getParentReport(taskReport); - // We only want to prevent closing if there are comments that are not + // If the task report is the last visible action in the parent report, we should navigate back to the parent report const shouldDeleteTaskReport = !ReportActionsUtils.doesReportHaveVisibleActions(taskReportID); const optimisticReportActions = {