Skip to content

Commit

Permalink
Merge pull request #42929 from s77rt/updateManyPolicyConnectionConfig…
Browse files Browse the repository at this point in the history
…s-offline-first

Pass configUpdate correctly to onyx
  • Loading branch information
aldo-expensify authored May 31, 2024
2 parents d5ca2a7 + e5a7309 commit b71d98d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/connections/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function updateManyPolicyConnectionConfigs<TConnectionName extends ConnectionNam
connections: {
[connectionName]: {
config: {
configUpdate,
...configUpdate,
pendingFields: Object.fromEntries(Object.keys(configUpdate).map((settingName) => [settingName, CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE])),
errorFields: Object.fromEntries(Object.keys(configUpdate).map((settingName) => [settingName, null])),
},
Expand All @@ -196,7 +196,7 @@ function updateManyPolicyConnectionConfigs<TConnectionName extends ConnectionNam
connections: {
[connectionName]: {
config: {
configCurrentData,
...configCurrentData,
pendingFields: Object.fromEntries(Object.keys(configUpdate).map((settingName) => [settingName, null])),
errorFields: Object.fromEntries(Object.keys(configUpdate).map((settingName) => [settingName, ErrorUtils.getMicroSecondOnyxError('common.genericErrorMessage')])),
},
Expand Down

0 comments on commit b71d98d

Please sign in to comment.