[TE] frontend - harleyjj/alert-details - remove duplicate key from component
@@ -1053,7 +1053,9 @@ export default Component.extend({
// The format is rule1_name:rule1_type,rule2_name:rule2_type ...
// For example: wow_10_percent_change:PERCENTAGE_RULE,algorithm:ALGORITHM
let rules = [];
- properties.detectorComponentName.split(',').forEach(x => { rules.push(x.split(':')[0])});
+ properties.detectorComponentName.split(',').forEach(x => {
+ rules.push(x.split(':')[0]);
+ });
result = rules.sort().join();
} else {
result = '--';
@@ -1179,18 +1181,6 @@ export default Component.extend({
return result;
},
- _formattedRule(properties) {
- let result;
- if (properties && typeof properties === 'object') {
- if (properties.detectorComponentName) {
- result = properties.detectorComponentName.split(':')[0];
- } else {
- result = '--';
- }
- }
- return result;
- },
-
/**
* Set retrieved anomalies/timeSeries based on current state
* @method _setAnomaliesAndTimeSeries
