diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-07-16 17:56:19 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-07-17 21:54:54 +0200 |
commit | 1fb78602c56b7bf52dcf383fea7a4c45ce568655 (patch) | |
tree | 7b254b47214e396146c9e94b269dcc8eba518f5e /app/javascript/flavours/glitch/actions | |
parent | 8501ad5c5cce7574d093f0da1c5e30a681550dc3 (diff) |
Do not cause an error if domain_lists.blocks.next is undefined (fixes #572)
Port d0d23b8f0aa72946fe0c8d3327ce1d8bbc049d4f to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/actions')
-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 46f76710c..7397f561b 100644 --- a/app/javascript/flavours/glitch/actions/domain_blocks.js +++ b/app/javascript/flavours/glitch/actions/domain_blocks.js @@ -128,7 +128,7 @@ export function expandDomainBlocks() { return (dispatch, getState) => { const url = getState().getIn(['domain_lists', 'blocks', 'next']); - if (url === null) { + if (!url) { return; } |