Skip to content

Commit

Permalink
Merge pull request #33043 from DylanDylann/fix/32120
Browse files Browse the repository at this point in the history
Fix/32123: Remove pending fields when saving waypoints
  • Loading branch information
Hayata Suenaga authored Dec 18, 2023
2 parents 771ec1e + fd6bcf6 commit 73f42a8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/libs/actions/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ function addStop(transactionID: string) {

function saveWaypoint(transactionID: string, index: string, waypoint: RecentWaypoint | null, isDraft = false) {
Onyx.merge(`${isDraft ? ONYXKEYS.COLLECTION.TRANSACTION : ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID}`, {
pendingFields: {
waypoints: isDraft ? CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE : CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
},
comment: {
waypoints: {
[`waypoint${index}`]: waypoint,
Expand Down

0 comments on commit 73f42a8

Please sign in to comment.