Skip to content

Commit

Permalink
fix(platform): wrong pagination in artifacts list
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyi.levi committed Sep 27, 2022
1 parent 7129578 commit 121866f
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions packages/platform/src/modules/bundle/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,20 +271,24 @@ export const BundleList = memo(() => {

const onChangeArtifactName = useCallback(
(name: string | undefined) => {
updateQueryString({
page: 1,
name,
})
if (name) {
updateQueryString({
page: 1,
name,
})
}
},
[updateQueryString],
)

const onChangeBranch = useCallback(
(branch: string | undefined) => {
updateQueryString({
page: 1,
branch,
})
if (branch) {
updateQueryString({
page: 1,
branch,
})
}
},
[updateQueryString],
)
Expand Down

0 comments on commit 121866f

Please sign in to comment.