Skip to content

Commit

Permalink
revert some changes
Browse files Browse the repository at this point in the history
Signed-off-by: Tsaqif <[email protected]>
  • Loading branch information
tsa321 committed Nov 21, 2024
1 parent 5f4c4db commit 35238fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ function deleteTask(report: OnyxEntry<OnyxTypes.Report>) {
};

API.write(WRITE_COMMANDS.CANCEL_TASK, parameters, {optimisticData, successData, failureData});
// Editing a task shouldn't scroll the report to the bottom, so we don't need to call Report.notifyNewAction.
Report.notifyNewAction(report.reportID, currentUserAccountID);

if (shouldDeleteTaskReport) {
Navigation.goBack();
Expand Down

0 comments on commit 35238fb

Please sign in to comment.