Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Dec 12, 2022
1 parent d298717 commit f65cc6d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,7 @@ const TopNav = ({
const shouldShowDataViewPicker = Boolean(
vis.type.editorConfig?.enableDataViewChange &&
((vis.data.indexPattern && !vis.data.savedSearchId) ||
isFallbackDataView(vis.data.indexPattern) ||
(vis.data.searchSource && !vis.data.indexPattern)) &&
isFallbackDataView(vis.data.indexPattern)) &&
indexPatterns.length
);

Expand All @@ -284,8 +283,7 @@ const TopNav = ({
[stateContainer.transitions]
);

const isMissingCurrentDataView =
isFallbackDataView(vis.data.indexPattern) || (vis.data.searchSource && !vis.data.indexPattern);
const isMissingCurrentDataView = isFallbackDataView(vis.data.indexPattern);

return isChromeVisible ? (
/**
Expand Down

0 comments on commit f65cc6d

Please sign in to comment.