Fix notifications marker fetch (#29777)

This commit is contained in:
Renaud Chaput 2024-03-27 16:49:02 +01:00 committed by GitHub
parent 9fbe8d3a0c
commit b9982ce578
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -155,8 +155,10 @@ export const submitMarkers = createAppAsyncThunk(
export const fetchMarkers = createAppAsyncThunk(
'markers/fetch',
async (_args, { getState }) => {
const response =
await api(getState).get<Record<string, MarkerJSON>>(`/api/v1/markers`);
const response = await api(getState).get<Record<string, MarkerJSON>>(
`/api/v1/markers`,
{ params: { timeline: ['notifications'] } },
);
return { markers: response.data };
},