Skip to content

Commit

Permalink
fix: 태그 클릭 시 페이지네이션 초기화
Browse files Browse the repository at this point in the history
  • Loading branch information
her0707 committed Sep 14, 2023
1 parent ae5cb05 commit 38ac8fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/feature/content/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const Main = ({ data, tagsData }: Props) => {

const handleTabClick = (index: number) => {
setActiveTab(index);
setPage(0);
};

const handlePageChange = (page: number) => {
Expand Down

0 comments on commit 38ac8fe

Please sign in to comment.