Skip to content

Commit

Permalink
Revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Dec 12, 2022
1 parent f65cc6d commit 93b0c5d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ const TopNav = ({
showQueryInput={showQueryInput}
showSaveQuery={Boolean(services.visualizeCapabilities.saveQuery)}
dataViewPickerComponentProps={
shouldShowDataViewPicker
shouldShowDataViewPicker && vis.data.indexPattern
? {
currentDataViewId: vis.data?.indexPattern?.id,
currentDataViewId: vis.data.indexPattern.id,
trigger: {
label: isMissingCurrentDataView
? i18n.translate('visualizations.fallbackDataView.label', {
Expand All @@ -326,7 +326,7 @@ const TopNav = ({
}),
},
})
: vis.data?.indexPattern?.getName(),
: vis.data.indexPattern.getName(),
},
isMissingCurrent: isMissingCurrentDataView,
onChangeDataView,
Expand Down

0 comments on commit 93b0c5d

Please sign in to comment.