From a8c0ab8e80fc63c872e8840e24635970b04ed58c Mon Sep 17 00:00:00 2001 From: Nastya <55718143+anrusina@users.noreply.github.com> Date: Wed, 13 Apr 2022 15:42:06 -0700 Subject: [PATCH] fix(383): tasks and workflow number capped to 25 in dashboard page (#384) Signed-off-by: Nastya Rusina --- src/components/Project/ProjectDashboard.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Project/ProjectDashboard.tsx b/src/components/Project/ProjectDashboard.tsx index 771d91d4e..0537ed91f 100644 --- a/src/components/Project/ProjectDashboard.tsx +++ b/src/components/Project/ProjectDashboard.tsx @@ -8,6 +8,7 @@ import { useInfiniteQuery, useQuery, useQueryClient } from 'react-query'; import { Admin } from 'flyteidl'; import { DomainSettingsSection } from 'components/common/DomainSettingsSection'; import { getCacheKey } from 'components/Cache/utils'; +import { limits } from 'models/AdminEntity/constants'; import { ErrorBoundary } from 'components/common/ErrorBoundary'; import { LargeLoadingSpinner } from 'components/common/LoadingSpinner'; import { DataError } from 'components/Errors/DataError'; @@ -127,9 +128,9 @@ export const ProjectDashboard: React.FC = ({ const fetch = React.useCallback(() => executionsQuery.fetchNextPage(), [executionsQuery]); - const { value: workflows } = useWorkflowNameList({ domain, project }, {}); + const { value: workflows } = useWorkflowNameList({ domain, project }, { limit: limits.NONE }); const numberOfWorkflows = workflows.length; - const { value: tasks } = useTaskNameList({ domain, project }, {}); + const { value: tasks } = useTaskNameList({ domain, project }, { limit: limits.NONE }); const numberOfTasks = tasks.length; const queryClient = useQueryClient();