fix: missing &&

This commit is contained in:
Timothy 2021-05-29 17:49:29 +08:00 committed by GitHub
parent 5cbb16381d
commit b44e209385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ export default function ListLayout({ posts, title, initialDisplayPosts = [], pag
</div>
{pagination &&
pagination.totalPages > 1 &&
!searchValue(
!searchValue && (
<Pagination currentPage={pagination.currentPage} totalPages={pagination.totalPages} />
)}
</>