Skip to content

Commit 4e32e09

Browse files
committed
fix: show Issue page pagination after fetch
1 parent 3cbde53 commit 4e32e09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Pages/IssuePage/IssuePage.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const IssuePage = () => {
2525
handleSearchClick,
2626
handleCheckboxChange,
2727
handleClearAll,
28+
pageCount,
2829
} = useContext(IssueContext);
2930

3031
const { owner, repoName } = useParams();
@@ -83,7 +84,7 @@ const IssuePage = () => {
8384
handleCheckboxChange={handleCheckboxChange}
8485
owner={owner}
8586
/>
86-
<IssuePagePagination />
87+
{pageCount > 1 && <IssuePagePagination />}{" "}
8788
</IssueAllContainer>
8889
</NoAlignCenter>
8990
</>

0 commit comments

Comments
 (0)