Skip to content

Commit

Permalink
also update optimisticTaskCreatedAction in successdata
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Jul 19, 2023
1 parent 8478cdb commit 7557597
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ function createTaskAndNavigate(parentReportID, title, description, assignee, ass
},
},
},
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${optimisticTaskReport.reportID}`,
value: {
[optimisticTaskCreatedAction.reportActionID]: {
pendingAction: null,
},
},
},
];

const failureData = [
Expand Down

0 comments on commit 7557597

Please sign in to comment.