Skip to content

Commit

Permalink
Merge pull request #10874 from Expensify/jack-clearPendingAction
Browse files Browse the repository at this point in the history
[No QA] Update Onyx Fields When Creating Workspace
  • Loading branch information
neil-marcellini authored Sep 13, 2022
2 parents 567db53 + 82f80ad commit 9a98116
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -888,15 +888,42 @@ function createWorkspace() {
key: `${ONYXKEYS.COLLECTION.REPORT}${announceChatReportID}`,
value: {pendingAction: null},
},
{
onyxMethod: CONST.ONYX.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${announceChatReportID}`,
value: {
0: {
pendingAction: null,
},
},
},
{
onyxMethod: CONST.ONYX.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${adminsChatReportID}`,
value: {pendingAction: null},
},
{
onyxMethod: CONST.ONYX.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${adminsChatReportID}`,
value: {
0: {
pendingAction: null,
},
},
},
{
onyxMethod: CONST.ONYX.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${expenseChatReportID}`,
value: {pendingAction: null},
},
{
onyxMethod: CONST.ONYX.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${expenseChatReportID}`,
value: {
0: {
pendingAction: null,
},
},
}],
failureData: [{
onyxMethod: CONST.ONYX.METHOD.SET,
Expand All @@ -914,7 +941,7 @@ function createWorkspace() {
value: null,
},
{
onyxMethod: CONST.ONYX.METHOD.MERGE,
onyxMethod: CONST.ONYX.METHOD.SET,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${announceChatReportID}`,
value: null,
},
Expand All @@ -924,7 +951,7 @@ function createWorkspace() {
value: null,
},
{
onyxMethod: CONST.ONYX.METHOD.MERGE,
onyxMethod: CONST.ONYX.METHOD.SET,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${adminsChatReportID}`,
value: null,
},
Expand All @@ -934,7 +961,7 @@ function createWorkspace() {
value: null,
},
{
onyxMethod: CONST.ONYX.METHOD.MERGE,
onyxMethod: CONST.ONYX.METHOD.SET,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${expenseChatReportID}`,
value: null,
}],
Expand Down

0 comments on commit 9a98116

Please sign in to comment.