mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[discover ] Remove extra field list request (#168315)
## Summary The data view picker reloads the field list when the data view is changed. Discover also does this. It doesn't need to happen twice so this removes the discover field list reload call. Addresses https://github.com/elastic/kibana/issues/167221
This commit is contained in:
parent
a5cde4ae29
commit
d85ebc5c42
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ export async function loadDataView({
|
|||
let fetchedDataView: DataView | null = null;
|
||||
// try to fetch adhoc data view first
|
||||
try {
|
||||
fetchedDataView = fetchId ? await dataViews.get(fetchId, false, true) : null;
|
||||
fetchedDataView = fetchId ? await dataViews.get(fetchId) : null;
|
||||
if (fetchedDataView && !fetchedDataView.isPersisted()) {
|
||||
return {
|
||||
list: dataViewList || [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue