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
This commit is contained in:
parent
cce7eb0316
commit
3aaa8f1a95
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ export function expandDomainBlocks() {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const url = getState().getIn(['domain_lists', 'blocks', 'next']);
|
const url = getState().getIn(['domain_lists', 'blocks', 'next']);
|
||||||
|
|
||||||
if (url === null) {
|
if (!url) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue