mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Zmiana pozycji karty filtrów scenerii; dodano filtrowanie autorów
This commit is contained in:
+1
-2
@@ -103,8 +103,6 @@ export const store = createStore<State>({
|
||||
await axios.get(`${URLs.stacjownikAPI}/api/getSceneryData?timestamp=${Math.floor(Date.now() / 1800000)}`)
|
||||
).data.response;
|
||||
|
||||
|
||||
|
||||
if (!sceneryData) commit(MUTATIONS.SET_SCENERY_DATA_STATUS, DataStatus.Error);
|
||||
else commit(MUTATIONS.SET_SCENERY_DATA, sceneryData);
|
||||
},
|
||||
@@ -323,6 +321,7 @@ export const store = createStore<State>({
|
||||
|
||||
generalInfo: {
|
||||
...stationData,
|
||||
authors: stationData.authors?.split(',').map(a => a.trim()),
|
||||
routes:
|
||||
stationData.routes
|
||||
?.split(';')
|
||||
|
||||
@@ -55,6 +55,7 @@ export interface StationJSONData {
|
||||
|
||||
routes: string;
|
||||
checkpoints: string | null;
|
||||
authors?: string;
|
||||
|
||||
availability: Availability;
|
||||
}
|
||||
Reference in New Issue
Block a user