ui: fix some proptype warnings

This commit is contained in:
nick-delirium 2024-12-27 14:18:55 +01:00
parent 16d75a6a1b
commit 3a48e061ef
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -64,7 +64,7 @@ function WidgetChart(props: Props) {
const prevMetricRef = useRef<any>();
const isMounted = useIsMounted();
const [compData, setCompData] = useState<any>(null);
const [enabledRows, setEnabledRows] = useState([]);
const [enabledRows, setEnabledRows] = useState<string[]>([]);
const isTableWidget =
_metric.metricType === 'table' && _metric.viewType === 'table';
const isPieChart =
@ -524,7 +524,6 @@ function WidgetChart(props: Props) {
<WidgetDatatable
inBuilder={props.isPreview}
defaultOpen={true}
isTableView={_metric.viewType === 'table'}
data={data}
enabledRows={enabledRows}
setEnabledRows={setEnabledRows}