mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
parent
4f69c7a4b8
commit
50a53729ef
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ export function VisualizeListingController($injector) {
|
|||
this.totalItems = result.total;
|
||||
this.showLimitError = result.total > config.get('savedObjects:listingLimit');
|
||||
this.listingLimit = config.get('savedObjects:listingLimit');
|
||||
return result.hits.filter(result => (isLabsEnabled || !result.type.stage === 'lab'));
|
||||
return result.hits.filter(result => (isLabsEnabled || result.type.stage !== 'lab'));
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ module.directive('savedObjectFinder', function ($location, $injector, kbnUrl, Pr
|
|||
self.service.find(filter)
|
||||
.then(function (hits) {
|
||||
|
||||
hits.hits = hits.hits.filter((hit) => (isLabsEnabled || !hit.type.stage === 'lab'));
|
||||
hits.hits = hits.hits.filter((hit) => (isLabsEnabled || hit.type.stage !== 'lab'));
|
||||
hits.total = hits.hits.length;
|
||||
|
||||
// ensure that we don't display old results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue