Skip to content

Commit

Permalink
[ML] Remove unneccessary argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Sep 21, 2018
1 parent 40ea39f commit 12efbb7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions x-pack/plugins/ml/public/explorer/explorer_swimlane.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class ExplorerSwimlane extends React.Component {
selectedData.laneLabels = _.uniq(selectedData.laneLabels);
selectedData.times = _.uniq(selectedData.times);
if (_.isEqual(selectedData, this.previousSelectedData) === false) {
this.selectCell(elements, selectedData, true);
this.selectCell(elements, selectedData);
this.previousSelectedData = selectedData;
}
}
Expand All @@ -119,10 +119,7 @@ export class ExplorerSwimlane extends React.Component {
elements.map(e => d3.select(e).classed('ds-selected', false));
}

checkForSelection() {
}

selectCell(cellsToSelect, { laneLabels, bucketScore, times }, checkEqualSelection = false) {
selectCell(cellsToSelect, { laneLabels, bucketScore, times }) {
const {
selection,
mlExplorerDashboardService,
Expand Down Expand Up @@ -153,7 +150,7 @@ export class ExplorerSwimlane extends React.Component {
selectedTimes: d3.extent(times)
};

if ((checkEqualSelection && _.isEqual(oldSelection, newSelection))) {
if (_.isEqual(oldSelection, newSelection)) {
triggerNewSelection = false;
}

Expand Down

0 comments on commit 12efbb7

Please sign in to comment.