Fix undefined URL in `fetchDomainBlocks`

lolsob-rspec
Thibaut Girka 2018-03-04 22:19:20 +01:00
parent bc51e7509b
commit 876cc5c02b
1 changed files with 1 additions and 1 deletions

View File

@ -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 => {