From d0d23b8f0aa72946fe0c8d3327ce1d8bbc049d4f Mon Sep 17 00:00:00 2001 From: ThibG Date: Sat, 14 Jul 2018 23:28:29 +0200 Subject: 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(-) (limited to 'app/javascript') diff --git a/app/javascript/mastodon/actions/domain_blocks.js b/app/javascript/mastodon/actions/domain_blocks.js index 47e2df76b..0445a5e10 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; } -- cgit