Fix minor bugs

This commit is contained in:
Thibaut Girka
2020-09-19 14:30:09 +02:00
committed by ThibG
parent 312c936d51
commit 787d5d7289
2 changed files with 12 additions and 11 deletions

View File

@ -105,15 +105,15 @@ export function submitMarkers() {
};
export const fetchMarkers = () => (dispatch, getState) => {
const params = { timeline: ['notifications'] };
const params = { timeline: ['notifications'] };
dispatch(fetchMarkersRequest());
dispatch(fetchMarkersRequest());
api(getState).get('/api/v1/markers', { params }).then(response => {
dispatch(fetchMarkersSuccess(response.data));
}).catch(error => {
dispatch(fetchMarkersFail(error));
});
api(getState).get('/api/v1/markers', { params }).then(response => {
dispatch(fetchMarkersSuccess(response.data));
}).catch(error => {
dispatch(fetchMarkersFail(error));
});
};
export function fetchMarkersRequest() {