Fix: niewyświetlające się scenerie niedostępne

This commit is contained in:
2022-01-15 00:47:34 +01:00
parent 12790d1e5d
commit 057b9bb336
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -233,7 +233,6 @@ export default defineComponent({
const searchedTrain = inject('searchedTrain') as Ref<string>;
const searchedDriver = inject('searchedDriver') as Ref<string>;
const queryTrain = inject('queryTrain') as Ref<string>;
const chosenSchedule = ref(0);
+2 -2
View File
@@ -85,8 +85,8 @@ const filterStations = (station: Station, filters: Filter) => {
// if (station.generalInfo.reqLevel == -1) return true;
// if (station.generalInfo.reqLevel == -1 && filters['minLevel'] == 0) return true;
if (station.generalInfo.reqLevel + (station.generalInfo.nonPublic ? 1 : 0) < filters['minLevel']) return returnMode;
if (station.generalInfo.reqLevel + (station.generalInfo.nonPublic ? 1 : 0) > filters['maxLevel']) return returnMode;
if (station.generalInfo.reqLevel + ((station.generalInfo.nonPublic || station.generalInfo.unavailable) ? 1 : 0) < filters['minLevel']) return returnMode;
if (station.generalInfo.reqLevel + ((station.generalInfo.nonPublic || station.generalInfo.unavailable) ? 1 : 0) > filters['maxLevel']) return returnMode;
if (filters['no-1track'] && (station.generalInfo.routes.oneWay.catenary != 0 || station.generalInfo.routes.oneWay.noCatenary != 0)) return returnMode;
if (filters['no-2track'] && (station.generalInfo.routes.twoWay.catenary != 0 || station.generalInfo.routes.twoWay.noCatenary != 0)) return returnMode;