Poprawki w error handlingu

This commit is contained in:
2022-05-03 12:48:36 +02:00
parent 9569a7e9b8
commit 04c48c7a70
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -101,6 +101,9 @@ export const store = createStore<State>({
async fetchOnlineData({ commit }, data: APIData) {
if (!data.stations) {
commit(MUTATIONS.SET_SCENERY_DATA_STATUS, DataStatus.Error);
commit(MUTATIONS.SET_TRAINS_DATA_STATUS, DataStatus.Error);
commit(MUTATIONS.SET_DISPATCHER_DATA_STATUS, DataStatus.Error);
return;
}