diff --git a/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx b/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx index 685da85a5..af9dc296e 100644 --- a/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx +++ b/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx @@ -17,12 +17,12 @@ interface Props { const metricIcons = { timeseries: 'graph-up', - table: 'table', + table: 'table', funnel: 'funnel', } function WidgetForm(props: Props) { - + const { history, match: { params: { siteId, dashboardId } } } = props; const { metricStore, dashboardStore } = useStore(); const dashboards = dashboardStore.dashboards; @@ -101,7 +101,7 @@ function WidgetForm(props: Props) {
- {metric.series.length > 0 && metric.series.slice(0, (isTable || isFunnel) ? 1 : metric.series.length).map((series: any, index: number) => ( -
+
metric.updateKey('hasChanged', true)} hideHeader={ isTable } diff --git a/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx b/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx index 3180519ac..3b8d8f246 100644 --- a/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx +++ b/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx @@ -43,7 +43,7 @@ function WidgetView(props: Props) { setMetricNotFound(true); } }); - } else if (metricId === 'create') { + } else { metricStore.init(); } }, []);