diff --git a/ui/src/dashboards/components/DashboardSwitcher.js b/ui/src/dashboards/components/DashboardSwitcher.js index ce2a56fd0..9aa958313 100644 --- a/ui/src/dashboards/components/DashboardSwitcher.js +++ b/ui/src/dashboards/components/DashboardSwitcher.js @@ -5,6 +5,8 @@ import _ from 'lodash' import classnames from 'classnames' import OnClickOutside from 'shared/components/OnClickOutside' import {ErrorHandling} from 'src/shared/decorators/errors' +import FancyScrollbar from 'src/shared/components/FancyScrollbar' +import {DROPDOWN_MENU_MAX_HEIGHT} from 'src/shared/constants/index' @ErrorHandling class DashboardSwitcher extends Component { @@ -29,9 +31,8 @@ class DashboardSwitcher extends Component { } render() { - const {activeDashboard, names} = this.props + const {activeDashboard} = this.props const {isOpen} = this.state - const sorted = _.sortBy(names, ({name}) => name.toLowerCase()) return (