Skip to content

Commit

Permalink
[discover ] Remove extra field list request (#168315)
Browse files Browse the repository at this point in the history
## 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 #167221
  • Loading branch information
mattkime authored Dec 1, 2023
1 parent a5cde4a commit d85ebc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 || [],
Expand Down

0 comments on commit d85ebc5

Please sign in to comment.