@@ -62,7 +62,7 @@ const FilterWrapperForRun = () => {
6262export const Pipelines : React . FC = ( ) => {
6363 const { setFetchingForAllRuns } = useService ( ) ;
6464 const selectedWorkspace = useSelector ( workspaceSelectors . selectedWorkspace ) ;
65- console . log ( setFetchingForAllRuns ) ;
65+ console . log ( 'a' , setFetchingForAllRuns ) ;
6666 const locationPath = useLocationPath ( ) ;
6767
6868 return (
@@ -73,15 +73,19 @@ export const Pipelines: React.FC = () => {
7373 text : translate ( 'tabs.allRuns.text' ) ,
7474 Component : FilterWrapperForRun ,
7575 path : routePaths . pipelines . allRuns (
76- selectedWorkspace ? selectedWorkspace : locationPath . split ( '/' ) [ 2 ] ,
76+ selectedWorkspace
77+ ? selectedWorkspace
78+ : locationPath . split ( '/' ) [ 2 ] ,
7779 ) ,
7880 }
7981 : {
8082 text : translate ( 'tabs.pipelines.text' ) ,
8183 Component : FilterWrapper ,
8284 // path: routePaths.pipelines.base,
8385 path : routePaths . pipelines . list (
84- selectedWorkspace ? selectedWorkspace : locationPath . split ( '/' ) [ 2 ] ,
86+ selectedWorkspace
87+ ? selectedWorkspace
88+ : locationPath . split ( '/' ) [ 2 ] ,
8589 ) ,
8690 } ,
8791 ] }
@@ -97,10 +101,14 @@ export const Pipelines: React.FC = () => {
97101 // : routePaths.pipelines.allRuns(selectedWorkspace),
98102 to : locationPath . includes ( 'pipelines/list' )
99103 ? routePaths . pipelines . list (
100- selectedWorkspace ? selectedWorkspace : locationPath . split ( '/' ) [ 2 ] ,
104+ selectedWorkspace
105+ ? selectedWorkspace
106+ : locationPath . split ( '/' ) [ 2 ] ,
101107 )
102108 : routePaths . pipelines . allRuns (
103- selectedWorkspace ? selectedWorkspace : locationPath . split ( '/' ) [ 2 ] ,
109+ selectedWorkspace
110+ ? selectedWorkspace
111+ : locationPath . split ( '/' ) [ 2 ] ,
104112 ) ,
105113 } ,
106114 ] }
0 commit comments