From 66a0ac860f2762d04d833d314522e19ab52ec0f4 Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Mon, 18 Sep 2023 13:36:07 -0400 Subject: [PATCH] batch-ui: auto-set correct visible itin --- lib/components/narrative/narrative-itinerary.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/components/narrative/narrative-itinerary.js b/lib/components/narrative/narrative-itinerary.js index a070a8f3a..196548e63 100644 --- a/lib/components/narrative/narrative-itinerary.js +++ b/lib/components/narrative/narrative-itinerary.js @@ -21,8 +21,9 @@ export default class NarrativeItinerary extends Component { } __setItinToActiveIndex = () => { - const { index, setActiveItinerary } = this.props + const { index, setActiveItinerary, setVisibleItinerary } = this.props setActiveItinerary && setActiveItinerary({ index }) + setVisibleItinerary && setVisibleItinerary({ index }) } _onDirectClick = () => {