File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ const ClientLibrarySection = () => {
2929 const history = useHistory ( )
3030 const org = useSelector ( getOrg )
3131
32+ const onBoardingItems = {
33+ python : 'python' ,
34+ 'javascript-node' : 'nodejs' ,
35+ go : 'golang' ,
36+ }
37+
3238 if ( ! items . length ) {
3339 return null
3440 }
@@ -56,7 +62,12 @@ const ClientLibrarySection = () => {
5662 { items . map ( item => {
5763 const goto = ( ) => {
5864 event ( 'Load data client library clicked' , { type : item . name } )
59- history . push (
65+ if ( onBoardingItems . hasOwnProperty ( `${ item . id } ` ) ) {
66+ return history . push (
67+ `/${ ORGS } /${ org . id } /new-user-setup/${ onBoardingItems [ item . id ] } `
68+ )
69+ }
70+ return history . push (
6071 `/${ ORGS } /${ org . id } /load-data/${ CLIENT_LIBS } /${ item . id } `
6172 )
6273 }
You can’t perform that action at this time.
0 commit comments