diff --git a/frontend/app/components/Dashboard/components/DashboardList/Header.tsx b/frontend/app/components/Dashboard/components/DashboardList/Header.tsx index 13cdeab99..d4a3b9231 100644 --- a/frontend/app/components/Dashboard/components/DashboardList/Header.tsx +++ b/frontend/app/components/Dashboard/components/DashboardList/Header.tsx @@ -9,9 +9,8 @@ import { observer } from 'mobx-react-lite'; function Header() { const { dashboardStore } = useStore(); - const list = dashboardStore.filteredList; const dashboardsSearch = dashboardStore.filter.query; - const showSearch = list.length > 0 || dashboardsSearch; + const showSearch = dashboardStore.dashboards.length > 0 || dashboardsSearch; return ( <>
diff --git a/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx b/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx index 267807ec3..7edefd0a3 100644 --- a/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx +++ b/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx @@ -4,7 +4,7 @@ import CustomMetricPercentage from 'App/components/Dashboard/Widgets/CustomMetri import CustomMetricPieChart from 'App/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricPieChart'; import {Styles} from 'App/components/Dashboard/Widgets/common'; import {observer} from 'mobx-react-lite'; -import {Loader} from 'UI'; +import { Icon, Loader } from 'UI'; import {useStore} from 'App/mstore'; import WidgetPredefinedChart from '../WidgetPredefinedChart'; import CustomMetricOverviewChart from 'App/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricOverviewChart'; @@ -33,6 +33,7 @@ import InsightsCard from 'App/components/Dashboard/Widgets/CustomMetricsWidgets/ import SankeyChart from 'Shared/Insights/SankeyChart'; import CohortCard from '../../Widgets/CustomMetricsWidgets/CohortCard'; import SessionsBy from "Components/Dashboard/Widgets/CustomMetricsWidgets/SessionsBy"; +import { Empty } from 'antd'; interface Props { metric: any; @@ -207,19 +208,24 @@ function WidgetChart(props: Props) { } if (metricType === HEATMAP) { if (!props.isPreview) { - return ( + return metric.thumbnail ? (
clickmap thumbnail
+ ) : ( +
+ + No data available for the selected period. +
); } return ( - + ); } if (metricType === INSIGHTS) { - return ; + return ; } if (metricType === USER_PATH && data && data.links) {