poprawki filtrów poc.

This commit is contained in:
2023-11-10 15:39:49 +01:00
parent f8b4ce103f
commit e51b2fe2f3
2 changed files with 53 additions and 64 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ export const useStore = defineStore('store', {
getters: {
trainList(): Train[] {
return (this.activeData?.trains ?? [])
.filter((train) => train.online || train.timetable || train.lastSeen > Date.now() - 180000)
.filter((train) => train.timetable || train.online)
.map((train) => {
const stock = train.stockString.split(';');
const locoType = stock ? stock[0] : train.stockString;