mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Poprawki w error handlingu
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user