소스 검색

79903 add null check

Yohei-Shiina 4 년 전
부모
커밋
600353c36f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/app/src/components/SearchPage/SearchResultList.jsx

+ 1 - 1
packages/app/src/components/SearchPage/SearchResultList.jsx

@@ -20,7 +20,7 @@ class SearchResultList extends React.Component {
             />
           );
         })}
-        {this.props.searchResultCount > 0 && (
+        {this.props.searchResultCount != null && this.props.searchResultCount > 0 && (
           <div className="my-4 mx-auto">
             <PaginationWrapper
               activePage={this.props.activePage || 1}