File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
layouts/stackComponents/Stacks/List Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments