diff --git a/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx b/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx index 86cb52759..da8d9e790 100644 --- a/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx +++ b/frontend/app/components/Dashboard/components/WidgetChart/WidgetChart.tsx @@ -538,6 +538,7 @@ function WidgetChart(props: Props) { const showTable = _metric.metricType === TIMESERIES && (props.isPreview || _metric.viewType === TABLE) + const tableMode = _metric.viewType === 'table' && _metric.metricType === TIMESERIES return (
{loading ? stale ? : : ( @@ -549,6 +550,7 @@ function WidgetChart(props: Props) { inBuilder={props.isPreview} defaultOpen={true} data={data} + tableMode={tableMode} enabledRows={enabledRows} setEnabledRows={setEnabledRows} metric={_metric} diff --git a/frontend/app/components/Dashboard/components/WidgetDatatable/WidgetDatatable.tsx b/frontend/app/components/Dashboard/components/WidgetDatatable/WidgetDatatable.tsx index 08637a70d..e9fd1a9b5 100644 --- a/frontend/app/components/Dashboard/components/WidgetDatatable/WidgetDatatable.tsx +++ b/frontend/app/components/Dashboard/components/WidgetDatatable/WidgetDatatable.tsx @@ -31,6 +31,7 @@ interface Props { defaultOpen?: boolean; metric: { name: string; viewType: string }; inBuilder?: boolean; + tableMode?: boolean; } function WidgetDatatable(props: Props) { @@ -161,7 +162,7 @@ function WidgetDatatable(props: Props) { columns={tableProps} dataSource={tableData} pagination={false} - rowSelection={rowSelection} + rowSelection={props.tableMode ? undefined : rowSelection} size={'small'} scroll={{ x: 'max-content' }} />