[8.6] [ML] Fix Anomaly explorer console error because mismatching data view shape (#146152) (#146244)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[ML] Fix Anomaly explorer console error because mismatching data view
shape (#146152)](https://github.com/elastic/kibana/pull/146152)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Quynh Nguyen
(Quinn)","email":"43350163+qn895@users.noreply.github.com"},"sourceCommit":{"committedDate":"2022-11-23T22:32:57Z","message":"[ML]
Fix Anomaly explorer console error because mismatching data view shape
(#146152)\n\nfixes
https://github.com/elastic/kibana/issues/144341","sha":"42dbbdaeabab36094e8fea1d874827eb2af2fe9e","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","v8.6.0","v8.7.0"],"number":146152,"url":"https://github.com/elastic/kibana/pull/146152","mergeCommit":{"message":"[ML]
Fix Anomaly explorer console error because mismatching data view shape
(#146152)\n\nfixes
https://github.com/elastic/kibana/issues/144341","sha":"42dbbdaeabab36094e8fea1d874827eb2af2fe9e"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/146152","number":146152,"mergeCommit":{"message":"[ML]
Fix Anomaly explorer console error because mismatching data view shape
(#146152)\n\nfixes
https://github.com/elastic/kibana/issues/144341","sha":"42dbbdaeabab36094e8fea1d874827eb2af2fe9e"}}]}]
BACKPORT-->

Co-authored-by: Quynh Nguyen (Quinn) <43350163+qn895@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2022-11-23 18:38:27 -05:00 committed by GitHub
parent beeae697a7
commit fbf1981c00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,7 @@ export const ExplorerQueryBar: FC<ExplorerQueryBarProps> = ({
<QueryStringInput
bubbleSubmitEvent={false}
query={searchInput}
indexPatterns={[indexPattern]}
indexPatterns={[]}
onChange={searchChangeHandler}
onSubmit={applyInfluencersFilterQuery}
placeholder={filterPlaceHolder}