Skip to content

Commit

Permalink
fix: edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
irony committed Apr 26, 2023
1 parent 9a50eb7 commit 796a118
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/visualisation/src/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ const Map = ({
if (!cars.length) return
if (!activeCar) return
const car = cars.filter(({ id }) => id === activeCar.id)[0]
if (!car) return
setMapState((state) => ({
...state,
zoom: 14,
Expand Down

0 comments on commit 796a118

Please sign in to comment.