Commit e28ff14 1 parent 67f0a08 commit e28ff14 Copy full SHA for e28ff14
File tree 2 files changed +12
-16
lines changed
2 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -65,28 +65,24 @@ export function Main(props: MainProps) {
65
65
return `#${ basePath } ?${ searchParams . toString ( ) } ` ;
66
66
} ;
67
67
68
- // Usage examples:
69
- const dashboardHref = constructHrefWithDataSourceId (
70
- APP_PATH . DASHBOARD ,
71
- '' ,
72
- dataSourceId
73
- ) ;
74
- const overviewHref = constructHrefWithDataSourceId (
75
- APP_PATH . OVERVIEW ,
76
- '' ,
77
- dataSourceId
78
- ) ;
79
-
80
68
const sideNav = [
81
69
{
82
70
name : Navigation . AnomalyDetection ,
83
71
id : 0 ,
84
- href : overviewHref ,
72
+ href : constructHrefWithDataSourceId (
73
+ APP_PATH . OVERVIEW ,
74
+ '' ,
75
+ dataSourceId
76
+ ) ,
85
77
items : [
86
78
{
87
79
name : Navigation . Dashboard ,
88
80
id : 1 ,
89
- href : dashboardHref ,
81
+ href : constructHrefWithDataSourceId (
82
+ APP_PATH . DASHBOARD ,
83
+ '' ,
84
+ dataSourceId
85
+ ) ,
90
86
isSelected : props . location . pathname === APP_PATH . DASHBOARD ,
91
87
} ,
92
88
{
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export const getAllDetectorsQueryParamsWithDataSourceId = (
122
122
size : MAX_DETECTORS ,
123
123
sortDirection : SORT_DIRECTION . ASC ,
124
124
sortField : 'name' ,
125
- dataSourceId : dataSourceId ,
125
+ dataSourceId
126
126
} ) ;
127
127
128
128
export const getSampleDetectorsQueryParamsWithDataSouceId = (
@@ -134,5 +134,5 @@ export const getSampleDetectorsQueryParamsWithDataSouceId = (
134
134
size : MAX_DETECTORS ,
135
135
sortDirection : SORT_DIRECTION . ASC ,
136
136
sortField : 'name' ,
137
- dataSourceId : dataSourceId ,
137
+ dataSourceId
138
138
} ) ;
You can’t perform that action at this time.
0 commit comments