Skip to content

Commit

Permalink
Merge pull request Expensify#27859 from samh-nl/fix/issue-27538
Browse files Browse the repository at this point in the history
fix: clear errors when removing waypoint
  • Loading branch information
Li357 authored Sep 21, 2023
2 parents 5ff88b7 + 7d75ea9 commit 68d03fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/actions/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ function removeWaypoint(transactionID, currentIndex) {
if (!isRemovedWaypointEmpty) {
newTransaction = {
...newTransaction,
// Clear any errors that may be present, which apply to the old route
errorFields: {
route: null,
},
// Clear the existing route so that we don't show an old route
routes: {
route0: {
Expand Down

0 comments on commit 68d03fa

Please sign in to comment.