Skip to content

Commit e870f21

Browse files
chore: add type to payload (#528)
1 parent abb8227 commit e870f21

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ui/hooks/usePollingService.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const usePollingService = ({
1818
sortBy,
1919
isExpended,
2020
dispatchFun,
21+
type,
2122
paginatedValue,
2223
}: {
2324
pipelineId?: TId;
@@ -26,7 +27,7 @@ export const usePollingService = ({
2627
isExpended?: any;
2728
sortBy: string;
2829
dispatchFun: Function;
29-
30+
type?: string;
3031
paginatedValue: any;
3132
filter: {
3233
column: filterValue;
@@ -40,7 +41,6 @@ export const usePollingService = ({
4041

4142
const isValidFilter = filter?.map((f) => f.value).join('');
4243
const [pending, setPending] = useState(false);
43-
console.log(stackComponentId, 'dispatchFun');
4444
useEffect(() => {
4545
if (!isValidFilter && !isExpended && !pending) {
4646
const intervalId = setInterval(() => {
@@ -52,6 +52,7 @@ export const usePollingService = ({
5252
stackId: stackId,
5353
component_id: stackComponentId,
5454
sort_by: sortBy,
55+
type,
5556
logical_operator: 'and',
5657
workspace: selectedWorkspace,
5758
page: paginatedValue.page,

src/ui/layouts/stackComponents/Stacks/List/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const List: React.FC<Props> = ({
6969
usePollingService({
7070
filter,
7171
sortBy: activeSortingDirection?.toLowerCase() + ':' + activeSorting,
72+
type: componentId,
7273
dispatchFun: stackComponentsActions.getMy,
7374
paginatedValue: stackComponentsPaginated,
7475
});

0 commit comments

Comments
 (0)