about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/actions
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-07-16 17:56:19 +0200
committerThibG <thib@sitedethib.com>2018-07-17 21:54:54 +0200
commit1fb78602c56b7bf52dcf383fea7a4c45ce568655 (patch)
tree7b254b47214e396146c9e94b269dcc8eba518f5e /app/javascript/flavours/glitch/actions
parent8501ad5c5cce7574d093f0da1c5e30a681550dc3 (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.js2
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;
     }