Skip to content

Commit 863e0d2

Browse files
committed
clean up
Signed-off-by: Jackie Han <jkhanjob@gmail.com>
1 parent 70f30bc commit 863e0d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

public/pages/DefineDetector/containers/DefineDetector.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export const DefineDetector = (props: DefineDetectorProps) => {
164164
core.notifications.toasts.addDanger(
165165
'Unable to find the detector for editing'
166166
);
167-
props.history.push(`/detectors`);
167+
props.history.push(constructHrefWithDataSourceId(`/detectors`, dataSourceId, false));
168168
}
169169
}, [props.isEdit, MDSCreateState]);
170170

@@ -244,7 +244,8 @@ export const DefineDetector = (props: DefineDetectorProps) => {
244244
core.notifications.toasts.addSuccess(
245245
`Detector updated: ${response.response.name}`
246246
);
247-
props.history.push(`/detectors/${detectorId}/configurations/`);
247+
props.history.push(constructHrefWithDataSourceId(
248+
`/detectors/${detectorId}/configurations/`, dataSourceId, false));
248249
})
249250
.catch((err: any) => {
250251
core.notifications.toasts.addDanger(

0 commit comments

Comments
 (0)