소스 검색

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



불러오는 중...
취소
저장