Skip to content

Commit

Permalink
Update src/plugins/discover/public/application/apps/main/utils/update…
Browse files Browse the repository at this point in the history
…_search_source.ts

Co-authored-by: Tim Roes <[email protected]>
  • Loading branch information
kertal and timroes authored Jun 7, 2021
1 parent 692c79f commit c823cd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function updateSearchSource(
indexPattern,
uiSettings.get(SORT_DEFAULT_ORDER_SETTING)
);
const usedSearchSource = persist ? searchSource : (searchSource!.getParent() as SearchSource);
const usedSearchSource = persist ? searchSource : searchSource.getParent()!;

usedSearchSource
.setField('index', indexPattern)
Expand Down

0 comments on commit c823cd0

Please sign in to comment.