diff --git a/superset-frontend/src/pages/DashboardList/index.tsx b/superset-frontend/src/pages/DashboardList/index.tsx index 2d63ca1c59a..a5513422098 100644 --- a/superset-frontend/src/pages/DashboardList/index.tsx +++ b/superset-frontend/src/pages/DashboardList/index.tsx @@ -179,7 +179,7 @@ const DASHBOARD_COLUMNS_TO_FETCH = [ function DashboardList(props: DashboardListProps) { const { addDangerToast, addSuccessToast, user } = props; - const isNotMobile = !useIsMobile(); + const isMobile = useIsMobile(); const theme = useTheme(); const [mobileFiltersOpen, setMobileFiltersOpen] = useState(false); const { roles } = useSelector( @@ -859,7 +859,7 @@ function DashboardList(props: DashboardListProps) { name={t('Dashboards')} buttons={subMenuButtons} leftIcon={ - !isNotMobile ? ( + isMobile ? (