From 26d35ab81031d24bb946f7d7e1a1650cd96d0357 Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez-Cela Date: Tue, 12 Dec 2023 18:21:51 +0100 Subject: [PATCH] Merge pull request #32932 from Pujan92/fix/32908 Fix: IOU-Unable to create distance request after deleting finish waypoint, error displayed (cherry picked from commit 8e0bf448a8c6f72437d5d1a77f4bd38cda8b5886) --- src/pages/iou/WaypointEditor.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/iou/WaypointEditor.js b/src/pages/iou/WaypointEditor.js index 8aa1f862a37b..3c0d8802c5d0 100644 --- a/src/pages/iou/WaypointEditor.js +++ b/src/pages/iou/WaypointEditor.js @@ -256,7 +256,6 @@ WaypointEditor.defaultProps = defaultProps; export default withOnyx({ transaction: { key: ({route}) => `${ONYXKEYS.COLLECTION.TRANSACTION}${lodashGet(route, 'params.transactionID')}`, - selector: (transaction) => (transaction ? {transactionID: transaction.transactionID, comment: {waypoints: lodashGet(transaction, 'comment.waypoints')}} : null), }, recentWaypoints: { key: ONYXKEYS.NVP_RECENT_WAYPOINTS,