Skip to content

Commit

Permalink
[master] fix: missing page param in useFetchProjectsByTypeInfiniteQue…
Browse files Browse the repository at this point in the history
…ry (#4382)

fix: Missing page param in useFetchProjectsByTypeInfiniteQuery

Signed-off-by: donniean <[email protected]>
Co-authored-by: donniean <[email protected]>
  • Loading branch information
ks-ci-bot and donniean authored Dec 24, 2024
1 parent 87ec130 commit 74db818
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type UrlAndDataFormatterType = { url: string; formatter: TypeProjectsFormatterFu

interface FetchProjectsByTypeInfiniteParams {
limit?: number;
page?: number;
sortBy?: string;
name?: string;
cluster?: string;
Expand Down Expand Up @@ -72,6 +73,7 @@ export function useFetchProjectsByTypeInfiniteQuery({
const isFederated = type === 'federatedprojects';
const defaultParams: FetchProjectsByTypeInfiniteParams = {
limit: 10,
page: 1,
sortBy: 'createTime',
labelSelector: isFederated
? `kubesphere.io/kubefed-host-namespace=true`
Expand Down

0 comments on commit 74db818

Please sign in to comment.