Skip to content

Commit

Permalink
Merge pull request #51381 from tsa321/fixEditTaskNav
Browse files Browse the repository at this point in the history
Fix editing a task, navigate app to other report
  • Loading branch information
deetergp authored Dec 4, 2024
2 parents e6fc330 + 7b3630a commit 0eec30d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/libs/actions/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ function completeTask(taskReport: OnyxEntry<OnyxTypes.Report>) {

playSound(SOUNDS.SUCCESS);
API.write(WRITE_COMMANDS.COMPLETE_TASK, parameters, {optimisticData, successData, failureData});
Report.notifyNewAction(taskReportID, currentUserAccountID);
}

/**
Expand Down Expand Up @@ -513,7 +512,6 @@ function reopenTask(taskReport: OnyxEntry<OnyxTypes.Report>) {
};

API.write(WRITE_COMMANDS.REOPEN_TASK, parameters, {optimisticData, successData, failureData});
Report.notifyNewAction(taskReportID, currentUserAccountID);
}

function editTask(report: OnyxTypes.Report, {title, description}: OnyxTypes.Task) {
Expand Down Expand Up @@ -590,7 +588,6 @@ function editTask(report: OnyxTypes.Report, {title, description}: OnyxTypes.Task
};

API.write(WRITE_COMMANDS.EDIT_TASK, parameters, {optimisticData, successData, failureData});
Report.notifyNewAction(report.reportID, currentUserAccountID);
}

function editTaskAssignee(report: OnyxTypes.Report, sessionAccountID: number, assigneeEmail: string, assigneeAccountID: number | null = 0, assigneeChatReport?: OnyxEntry<OnyxTypes.Report>) {
Expand Down Expand Up @@ -729,7 +726,6 @@ function editTaskAssignee(report: OnyxTypes.Report, sessionAccountID: number, as
};

API.write(WRITE_COMMANDS.EDIT_TASK_ASSIGNEE, parameters, {optimisticData, successData, failureData});
Report.notifyNewAction(report.reportID, currentUserAccountID);
}

/**
Expand Down

0 comments on commit 0eec30d

Please sign in to comment.