Skip to content

Commit

Permalink
fix(discover): disable cache only on indexPatterns.get to prevent c…
Browse files Browse the repository at this point in the history
…rash (#7926) (#7976)

(cherry picked from commit 5115b1c)

Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 2ada7b3 commit 0dfe8be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const updateSearchSource = async ({

const dataset =
indexPattern.id === queryDataset?.id
? await data.indexPatterns.get(queryDataset?.id!, true)
? await data.indexPatterns.get(queryDataset?.id!)
: indexPattern;

const sortForSearchSource = getSortForSearchSource(
Expand Down

0 comments on commit 0dfe8be

Please sign in to comment.