Skip to content

Commit 3cff3a5

Browse files
committed
Fix url bug
Signed-off-by: gaobinlong <gbinlong@amazon.com>
1 parent 36fd364 commit 3cff3a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/components/DiscoverAction/SuggestAnomalyDetector.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ function SuggestAnomalyDetector({
321321
<EuiText>
322322
Detector created: <a href="#" onClick={(e) => {
323323
e.preventDefault();
324-
const url = `../${PLUGIN_NAME}#/detectors/${detectorId}/results?dataSourceId=${dataSourceId}`;
324+
const url = `../${PLUGIN_NAME}#/detectors/${detectorId}/results?dataSourceId=${dataSourceId || ''}`;
325325
window.open(url, '_blank');
326326
}} style={{ textDecoration: 'underline' }}>{formikProps.values.name}</a>
327327
</EuiText >

0 commit comments

Comments
 (0)