From 74db8185b884b733b1dd046ac20342bd31a495f1 Mon Sep 17 00:00:00 2001 From: KubeSphere CI Bot <47586280+ks-ci-bot@users.noreply.github.com> Date: Tue, 24 Dec 2024 10:01:07 +0800 Subject: [PATCH] [master] fix: missing page param in useFetchProjectsByTypeInfiniteQuery (#4382) fix: Missing page param in useFetchProjectsByTypeInfiniteQuery Signed-off-by: donniean Co-authored-by: donniean --- .../src/components/ProjectLayout/ProjectsSelectorModal/hooks.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/shared/src/components/ProjectLayout/ProjectsSelectorModal/hooks.ts b/packages/shared/src/components/ProjectLayout/ProjectsSelectorModal/hooks.ts index ca7bc483997..8f92d534ef1 100644 --- a/packages/shared/src/components/ProjectLayout/ProjectsSelectorModal/hooks.ts +++ b/packages/shared/src/components/ProjectLayout/ProjectsSelectorModal/hooks.ts @@ -31,6 +31,7 @@ type UrlAndDataFormatterType = { url: string; formatter: TypeProjectsFormatterFu interface FetchProjectsByTypeInfiniteParams { limit?: number; + page?: number; sortBy?: string; name?: string; cluster?: string; @@ -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`