diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-03-04 22:19:20 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-03-30 10:07:33 +0200 |
commit | 937ace10d907f0d280a2f48f891fa202c8e3175e (patch) | |
tree | 3e1c67303f3129ea5d314c9c56b86f824d137a01 /app/javascript/flavours/glitch | |
parent | 1bd12cf8ebaebfac440bcefd241b564997272ffb (diff) |
Fix undefined URL in `fetchDomainBlocks`
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r-- | app/javascript/flavours/glitch/actions/domain_blocks.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/actions/domain_blocks.js b/app/javascript/flavours/glitch/actions/domain_blocks.js index 8506df91c..80b852de8 100644 --- a/app/javascript/flavours/glitch/actions/domain_blocks.js +++ b/app/javascript/flavours/glitch/actions/domain_blocks.js @@ -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 => { |