Skip to content

Commit

Permalink
fix circuit breaker
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Sep 29, 2020
1 parent 559853e commit c3f55e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { from, combineLatest } from 'rxjs';
import { from, combineLatest, of } from 'rxjs';
import { map, takeUntil, first } from 'rxjs/operators';
import { GlobalSearchResultProvider } from '../../../../global_search/server';
import { mapToResults } from './map_object_to_result';
Expand All @@ -14,7 +14,7 @@ export const createSavedObjectsResultProvider = (): GlobalSearchResultProvider =
id: 'savedObjects',
find: (term, { aborted$, maxResults, preference }, { core }) => {
if (!term) {
return from([]);
return of([]);
}

const {
Expand Down

0 comments on commit c3f55e8

Please sign in to comment.