Naprawiono błąd z brakiem RJ dla innych serwerów niż PL1

This commit is contained in:
2021-12-03 18:39:48 +01:00
parent f2f8296959
commit 83bdadfe02
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ export const store = createStore<State>({
async fetchTimetableData({ commit }) {
const reducedList = this.state.trainList.reduce(async (acc: Promise<Timetable[]>, train: Train) => {
const timetable: TimetableAPIData = await (await axios.get(URLs.getTimetableURL(train.trainNo))).data.message;
const timetable: TimetableAPIData = await (await axios.get(URLs.getTimetableURL(train.trainNo, this.state.region.id))).data.message;
const trainInfo = timetable.trainInfo;
if (!timetable || !trainInfo) return acc;