Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thienlnam committed Dec 22, 2023
1 parent c04a5da commit 3461f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 3461f6b

Please sign in to comment.