Skip to content

Commit

Permalink
Merge pull request #28378 from DylanDylann/fix/25956
Browse files Browse the repository at this point in the history
Add pending fields when edit task assignee
  • Loading branch information
tylerkaraszewski authored Oct 5, 2023
2 parents cec77d2 + 958ed58 commit 93bfbc5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,19 @@ function editTaskAssigneeAndNavigate(report, ownerAccountID, assigneeEmail, assi
reportName,
managerID: assigneeAccountID || report.managerID,
managerEmail: assigneeEmail || report.managerEmail,
pendingFields: {
...(assigneeAccountID && {managerID: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE}),
},
},
},
];
const successData = [];
const successData = [
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${report.reportID}`,
value: {pendingFields: {...(assigneeAccountID && {managerID: null})}},
},
];
const failureData = [
{
onyxMethod: Onyx.METHOD.MERGE,
Expand Down

0 comments on commit 93bfbc5

Please sign in to comment.