Skip to content

Commit

Permalink
Fix issue where selected columns persist when creating a new search (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Feb 16, 2017
1 parent 04a7dae commit a3f0b8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function discoverController($scope, config, courier, $route, $window, Notifier,
return {
query: $scope.searchSource.get('query') || '',
sort: getSort.array(savedSearch.sort, $scope.indexPattern),
columns: savedSearch.columns.length > 0 ? savedSearch.columns : config.get('defaultColumns'),
columns: savedSearch.columns.length > 0 ? savedSearch.columns : config.get('defaultColumns').slice(),
index: $scope.indexPattern.id,
interval: 'auto',
filters: _.cloneDeep($scope.searchSource.getOwn('filter'))
Expand Down

0 comments on commit a3f0b8e

Please sign in to comment.