Skip to content

Commit

Permalink
Merge pull request #32981 from bernhardoj/fix/32964-crash-on-dragging…
Browse files Browse the repository at this point in the history
…-waypoitns

Fix app crash after dragging waypoints
  • Loading branch information
techievivek authored Dec 26, 2023
2 parents fadf1f9 + 2258251 commit d65ad48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/iou/request/step/IOURequestStepDistance.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ function IOURequestStepDistance({

const newWaypoints = {};
_.each(data, (waypoint, index) => {
const newWaypoint = lodashGet(waypoints, waypoint, {});
newWaypoints[`waypoint${index}`] = _.isEmpty(newWaypoint) ? null : newWaypoint;
newWaypoints[`waypoint${index}`] = lodashGet(waypoints, waypoint, {});
});

setOptimisticWaypoints(newWaypoints);
Expand Down

0 comments on commit d65ad48

Please sign in to comment.