Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Update off-route shuttle headings when shuttle sliding is enabled #313

Merged
merged 1 commit into from
Dec 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/structures/vehicle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default class Vehicle {
}

public setHeading(heading: number) {
if (!store.state.settings.shuttleSlideEnabled) {
if (!store.state.settings.shuttleSlideEnabled || this.pointIndex == null || this.endPointIndex == null) {
this.marker.setRotationAngle(heading - 45);
this.marker.bindPopup(this.getMessage());
} else {
Expand Down