Skip to content

Commit

Permalink
fix skin library page
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Apr 7, 2020
1 parent cad6845 commit f0e3b6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/assets/src/views/skinlib/SkinLibrary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const SkinLibrary: React.FC = () => {

setSort(search.get('sort') ?? 'time')

setPage(Number.parseInt(search.get('page') ?? '0'))
setPage(Number.parseInt(search.get('page') ?? '1'))
}

parseSearch(location.search)
Expand Down Expand Up @@ -81,7 +81,6 @@ const SkinLibrary: React.FC = () => {
search,
)
setItems(result.data)
setPage(result.current_page)
setTotalPages(result.last_page)
setIsLoading(false)
}
Expand Down Expand Up @@ -118,6 +117,7 @@ const SkinLibrary: React.FC = () => {
setKeyword('')
setSort('time')
setUploader(0)
setPage(1)
}

const handleUploaderClick = (uploader: number) => setUploader(uploader)
Expand Down

0 comments on commit f0e3b6a

Please sign in to comment.