Explorar el Código

79903 add null check

Yohei-Shiina hace 4 años
padre
commit
600353c36f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}