Skip to content

Commit

Permalink
Merge branch 'dev' into trusted-companions
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-willis-arcadis authored Nov 7, 2024
2 parents 55a49fa + 2f6a865 commit 532800a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/components/app/responsive-webapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class ResponsiveWebapp extends Component {
/* eslint-disable-next-line complexity */
componentDidUpdate(prevProps) {
const {
activeItinerary,
activeSearchId,
autoFly,
currentPosition,
Expand Down Expand Up @@ -101,7 +102,11 @@ class ResponsiveWebapp extends Component {
setLocationToCurrent({ locationType: 'from' }, intl)
setMapCenter(map, pt)
}
} else if (mainPanelContent === null && autoFly !== false) {
} else if (
mainPanelContent === null &&
autoFly !== false &&
activeItinerary === null
) {
if (query.from && query.to) {
map?.fitBounds([query.from, query.to], {
duration: 600,
Expand Down

0 comments on commit 532800a

Please sign in to comment.