Skip to content

Commit 73a6193

Browse files
committed
removing first use
1 parent dc6d8ec commit 73a6193

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

x-pack/plugins/ml/public/application/explorer/explorer_charts/explorer_charts_container_service.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import each from 'lodash/each';
1616
import find from 'lodash/find';
1717
import sortBy from 'lodash/sortBy';
1818
import map from 'lodash/map';
19-
import first from 'lodash/first';
2019
import reduce from 'lodash/reduce';
2120

2221
import { buildConfig } from './explorer_chart_config_builder';
@@ -342,7 +341,7 @@ export const anomalyDataChange = function (
342341
chartPoint.numberOfCauses = causes.length;
343342
if (causes.length === 1) {
344343
// If only a single cause, copy actual and typical values to the top level.
345-
const cause = first(record.causes);
344+
const cause = record.causes[0];
346345
chartPoint.actual = cause.actual;
347346
chartPoint.typical = cause.typical;
348347
}

0 commit comments

Comments
 (0)