From d0d23b8f0aa72946fe0c8d3327ce1d8bbc049d4f Mon Sep 17 00:00:00 2001 From: ThibG Date: Sat, 14 Jul 2018 23:28:29 +0200 Subject: [PATCH] Do not cause an error if domain_lists.blocks.next is undefined (#8021) A valid URL is always truthy, so we can simplify this check --- app/javascript/mastodon/actions/domain_blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/actions/domain_blocks.js b/app/javascript/mastodon/actions/domain_blocks.js index 47e2df76ba..0445a5e10c 100644 --- a/app/javascript/mastodon/actions/domain_blocks.js +++ b/app/javascript/mastodon/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; }