mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Catch fetchSurroundingDocs missing anchor (#43661)
This commit is contained in:
parent
90edcf2b10
commit
59e632afe5
1 changed files with 3 additions and 0 deletions
|
@ -72,6 +72,9 @@ function fetchContextProvider(indexPatterns: IndexPatterns, Private: IPrivate) {
|
|||
size: number,
|
||||
filters: Filter[]
|
||||
) {
|
||||
if (typeof anchor !== 'object' || anchor === null) {
|
||||
return [];
|
||||
}
|
||||
const indexPattern = await indexPatterns.get(indexPatternId);
|
||||
const searchSource = await createSearchSource(indexPattern, filters);
|
||||
const sortDirToApply = type === 'successors' ? sortDir : reverseSortDir(sortDir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue