diff --git a/src/ui/hooks/usePollingService.ts b/src/ui/hooks/usePollingService.ts index c54d73f17..29ea7a954 100644 --- a/src/ui/hooks/usePollingService.ts +++ b/src/ui/hooks/usePollingService.ts @@ -18,6 +18,7 @@ export const usePollingService = ({ sortBy, isExpended, dispatchFun, + type, paginatedValue, }: { pipelineId?: TId; @@ -26,7 +27,7 @@ export const usePollingService = ({ isExpended?: any; sortBy: string; dispatchFun: Function; - + type?: string; paginatedValue: any; filter: { column: filterValue; @@ -40,7 +41,6 @@ export const usePollingService = ({ const isValidFilter = filter?.map((f) => f.value).join(''); const [pending, setPending] = useState(false); - console.log(stackComponentId, 'dispatchFun'); useEffect(() => { if (!isValidFilter && !isExpended && !pending) { const intervalId = setInterval(() => { @@ -52,6 +52,7 @@ export const usePollingService = ({ stackId: stackId, component_id: stackComponentId, sort_by: sortBy, + type, logical_operator: 'and', workspace: selectedWorkspace, page: paginatedValue.page, diff --git a/src/ui/layouts/stackComponents/Stacks/List/index.tsx b/src/ui/layouts/stackComponents/Stacks/List/index.tsx index c9dc24649..3c457cd1a 100644 --- a/src/ui/layouts/stackComponents/Stacks/List/index.tsx +++ b/src/ui/layouts/stackComponents/Stacks/List/index.tsx @@ -69,6 +69,7 @@ export const List: React.FC<Props> = ({ usePollingService({ filter, sortBy: activeSortingDirection?.toLowerCase() + ':' + activeSorting, + type: componentId, dispatchFun: stackComponentsActions.getMy, paginatedValue: stackComponentsPaginated, });