From 1fb78602c56b7bf52dcf383fea7a4c45ce568655 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Mon, 16 Jul 2018 17:56:19 +0200 Subject: [PATCH] Do not cause an error if domain_lists.blocks.next is undefined (fixes #572) Port d0d23b8f0aa72946fe0c8d3327ce1d8bbc049d4f to glitch-soc --- app/javascript/flavours/glitch/actions/domain_blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }