Skip to content

Commit

Permalink
[ML] Code style tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Sep 7, 2018
1 parent 2c5dec7 commit 1963c4e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions x-pack/plugins/ml/public/explorer/explorer_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ const module = uiModules.get('apps/ml');

function getDefaultViewBySwimlaneData() {
return {
'fieldName': '',
'laneLabels': [],
'points': [],
'interval': 3600
fieldName: '',
laneLabels: [],
points: [],
interval: 3600
};
}

Expand Down Expand Up @@ -375,7 +375,13 @@ module.controller('MlExplorerController', function (
cellData.laneLabels : $scope.getSelectedJobIds();
const influencers = getSelectionInfluencers(cellData);

const listenerData = { jobIds, influencers, start: timerange.earliestMs, end: timerange.latestMs, cellData };
const listenerData = {
jobIds,
influencers,
start: timerange.earliestMs,
end: timerange.latestMs,
cellData
};
if (_.isEqual(listenerData, previousListenerData)) {
return;
}
Expand Down

0 comments on commit 1963c4e

Please sign in to comment.