mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 17:53:41 +01:00
Fix undefined URL in fetchDomainBlocks
This commit is contained in:
parent
1bd12cf8eb
commit
937ace10d9
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ export function fetchDomainBlocks() {
|
|||
return (dispatch, getState) => {
|
||||
dispatch(fetchDomainBlocksRequest());
|
||||
|
||||
api(getState).get().then(response => {
|
||||
api(getState).get('/api/v1/domain_blocks').then(response => {
|
||||
const next = getLinks(response).refs.find(link => link.rel === 'next');
|
||||
dispatch(fetchDomainBlocksSuccess(response.data, next ? next.uri : null));
|
||||
}).catch(err => {
|
||||
|
|
Loading…
Reference in a new issue