Skip to content

Commit

Permalink
Merge pull request #8428 from elastic/jasper/backport/8422/5.0
Browse files Browse the repository at this point in the history
[backport] PR #8422 to 5.0
  • Loading branch information
thomasneirynck authored Sep 22, 2016
2 parents 48725a3 + 1904f56 commit 3f0f105
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core_plugins/table_vis/public/table_vis_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ module.controller('KbnTableVisController', function ($scope, Private) {
$scope.uiState.set('vis.params.sort', newSort);
});

$scope.$watch('esResponse', function (resp, oldResp) {
/**
* Recreate the entire table when:
* - the underlying data changes (esResponse)
* - one of the view options changes (vis.params)
*/
$scope.$watchMulti(['esResponse', 'vis.params'], function ([resp]) {

let tableGroups = $scope.tableGroups = null;
let hasSomeRows = $scope.hasSomeRows = null;

Expand Down

0 comments on commit 3f0f105

Please sign in to comment.