This commit is contained in:
2020-12-04 19:45:49 +01:00
parent 555384aaec
commit da68b00794
3 changed files with 23 additions and 6 deletions
+3 -5
View File
@@ -324,13 +324,11 @@ export default class TimetableView extends Vue {
get stationInfo(): Station | null {
if (!this.$route.query.station) return null;
const info = this.stationList.find(
(station) =>
station.stationName ===
this.$route.query.station.toString().replaceAll("_", " ")
const station = this.stationList.find(
(station) => station.stationHash === this.$route.query.station
);
return info || null;
return station || null;
}
updateRows(info: Station | null = this.stationInfo) {