Skip to content

Commit

Permalink
- If anomaly data is missing show a gray border around node
Browse files Browse the repository at this point in the history
  • Loading branch information
ogupte committed Jun 9, 2020
1 parent 106d0f2 commit 143c0a8
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ const getBorderColor: cytoscape.Css.MapperFunction<
const hasAnomalyDetectionJob = el.data('ml_job_id') !== undefined;
const nodeSeverity = el.data('anomaly_severity');
if (hasAnomalyDetectionJob) {
return (
getSeverityColor(nodeSeverity) ||
(getSeverityColor(severity.warning) as string)
);
return getSeverityColor(nodeSeverity) || theme.euiColorMediumShade;
}
if (el.hasClass('primary') || el.selected()) {
return theme.euiColorPrimary;
Expand Down

0 comments on commit 143c0a8

Please sign in to comment.