diff --git a/src/libs/actions/Task.js b/src/libs/actions/Task.js index d66cc243acf4..69a6bc475029 100644 --- a/src/libs/actions/Task.js +++ b/src/libs/actions/Task.js @@ -270,12 +270,6 @@ function completeTask(taskReport, taskTitle) { }, ]; - // Update optimistic data for parent report action - const optimisticDataForParentReportAction = ReportUtils.getOptimisticDataForParentReportAction(taskReportID, completedTaskReportAction.created, CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD); - if (!_.isEmpty(optimisticDataForParentReportAction)) { - optimisticData.push(optimisticDataForParentReportAction); - } - // Multiple report actions can link to the same child. Both share destination (task parent) and assignee report link to the same report action. // We need to find and update the other parent report action (in assignee report). More info https://github.com/Expensify/App/issues/23920#issuecomment-1663092717 const assigneeReportAction = ReportUtils.getTaskParentReportActionIDInAssigneeReport(taskReport); @@ -363,12 +357,6 @@ function reopenTask(taskReport, taskTitle) { }, ]; - // Update optimistic data for parent report action - const optimisticDataForParentReportAction = ReportUtils.getOptimisticDataForParentReportAction(taskReportID, reopenedTaskReportAction.created, CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD); - if (!_.isEmpty(optimisticDataForParentReportAction)) { - optimisticData.push(optimisticDataForParentReportAction); - } - // Multiple report actions can link to the same child. Both share destination (task parent) and assignee report link to the same report action. // We need to find and update the other parent report action (in assignee report). More info https://github.com/Expensify/App/issues/23920#issuecomment-1663092717 const assigneeReportAction = ReportUtils.getTaskParentReportActionIDInAssigneeReport(taskReport);