Route Maker Error

When creating a route I came across an issue when toggling between map and satellite views: the route disappears (distance markers still show). When trying to continue the route I received the following error “TypeError: this.map.getSource(…) is undefined”. The issue only arises for reasonably complex routes (I didn’t test the limits, my route was around 15km).