Skip to content

Commit

Permalink
Filter index fields and scripted fields by name only (#10089)
Browse files Browse the repository at this point in the history
  • Loading branch information
coverslide authored and w33ble committed Mar 1, 2017
1 parent 899f040 commit d1b5c3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ uiModules.get('apps/management')
function refreshRows() {
// clear and destroy row scopes
_.invoke(rowScopes.splice(0), '$destroy');
const fields = filter($scope.indexPattern.getNonScriptedFields(), $scope.fieldFilter);
const fields = filter($scope.indexPattern.getNonScriptedFields(), { name: $scope.fieldFilter });
const sourceFilters = $scope.indexPattern.sourceFilters && $scope.indexPattern.sourceFilters.map(f => f.value) || [];
const fieldWildcardMatch = fieldWildcardMatcher(sourceFilters);
_.find($scope.editSections, { index: 'indexedFields' }).count = fields.length; // Update the tab count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ uiModules.get('apps/management')
_.invoke(rowScopes, '$destroy');
rowScopes.length = 0;

const fields = filter($scope.indexPattern.getScriptedFields(), $scope.fieldFilter);
const fields = filter($scope.indexPattern.getScriptedFields(), { name: $scope.fieldFilter });
_.find($scope.editSections, { index: 'scriptedFields' }).count = fields.length; // Update the tab count

$scope.rows = fields.map(function (field) {
Expand Down

0 comments on commit d1b5c3a

Please sign in to comment.