Skip to content

Commit

Permalink
Fix url bug
Browse files Browse the repository at this point in the history
Signed-off-by: gaobinlong <gbinlong@amazon.com>
  • Loading branch information
gaobinlong committed Sep 14, 2024
1 parent 36fd364 commit 3cff3a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ function SuggestAnomalyDetector({
<EuiText>
Detector created: <a href="#" onClick={(e) => {
e.preventDefault();
const url = `../${PLUGIN_NAME}#/detectors/${detectorId}/results?dataSourceId=${dataSourceId}`;
const url = `../${PLUGIN_NAME}#/detectors/${detectorId}/results?dataSourceId=${dataSourceId || ''}`;
window.open(url, '_blank');
}} style={{ textDecoration: 'underline' }}>{formikProps.values.name}</a>
</EuiText >
Expand Down

0 comments on commit 3cff3a5

Please sign in to comment.