File tree 1 file changed +3
-2
lines changed
public/pages/DefineDetector/containers
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export const DefineDetector = (props: DefineDetectorProps) => {
164
164
core . notifications . toasts . addDanger (
165
165
'Unable to find the detector for editing'
166
166
) ;
167
- props . history . push ( `/detectors` ) ;
167
+ props . history . push ( constructHrefWithDataSourceId ( `/detectors` , dataSourceId , false ) ) ;
168
168
}
169
169
} , [ props . isEdit , MDSCreateState ] ) ;
170
170
@@ -244,7 +244,8 @@ export const DefineDetector = (props: DefineDetectorProps) => {
244
244
core . notifications . toasts . addSuccess (
245
245
`Detector updated: ${ response . response . name } `
246
246
) ;
247
- props . history . push ( `/detectors/${ detectorId } /configurations/` ) ;
247
+ props . history . push ( constructHrefWithDataSourceId (
248
+ `/detectors/${ detectorId } /configurations/` , dataSourceId , false ) ) ;
248
249
} )
249
250
. catch ( ( err : any ) => {
250
251
core . notifications . toasts . addDanger (
You can’t perform that action at this time.
0 commit comments