about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-07-14 23:28:29 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-07-14 23:28:29 +0200
commitd0d23b8f0aa72946fe0c8d3327ce1d8bbc049d4f (patch)
tree13a1769dc9d9efdbd19d11f85544a680ec5d1a8a /app
parent0eacf2b419fdb7e7abca9f38537a05f7d3b89bf2 (diff)
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
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/actions/domain_blocks.js2
1 files changed, 1 insertions, 1 deletions
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;
     }