diff --git a/lib/components/app/batch-routing-panel.tsx b/lib/components/app/batch-routing-panel.tsx index 6ffa98b2a..30001e1b3 100644 --- a/lib/components/app/batch-routing-panel.tsx +++ b/lib/components/app/batch-routing-panel.tsx @@ -245,7 +245,7 @@ const mapStateToProps = (state: any) => { const { mainPanelContent } = state.otp.ui const currentQuery = state.otp.currentQuery - const { geocoderResultsOrder } = state.otp.config.geocoder + const geocoderResultsOrder = state.otp.config?.geocoder?.geocoderResultsOrder return { activeSearch: getActiveSearch(state), currentQuery,