mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
chore: checkpoints detection fix
This commit is contained in:
@@ -213,9 +213,7 @@ export default defineComponent({
|
||||
const mainStore = useMainStore();
|
||||
|
||||
const chosenCheckpoint = ref(
|
||||
props.station?.generalInfo?.checkpoints?.length == 0
|
||||
? ''
|
||||
: props.station?.generalInfo?.checkpoints[0] ?? null
|
||||
props.station?.generalInfo?.checkpoints[0] ?? props.station?.name ?? ''
|
||||
);
|
||||
|
||||
return {
|
||||
@@ -238,6 +236,8 @@ export default defineComponent({
|
||||
if (!this.station) return [];
|
||||
if (!this.onlineScenery) return [];
|
||||
|
||||
console.log(this.onlineScenery.scheduledTrains, this.chosenCheckpoint);
|
||||
|
||||
return this.onlineScenery.scheduledTrains
|
||||
.filter(
|
||||
(ct) =>
|
||||
|
||||
Reference in New Issue
Block a user