浏览代码

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
master
ThibG 5 年前
committed by Eugen Rochko
父节点
当前提交
d0d23b8f0a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/javascript/mastodon/actions/domain_blocks.js

+ 1
- 1
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;
}



正在加载...
取消
保存