ui: fix table crash

This commit is contained in:
nick-delirium 2025-02-21 17:48:38 +01:00
parent 7e4782ae71
commit 99d6545720
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -43,6 +43,7 @@ function WidgetDatatable(props: Props) {
dataObj.chart = dataObj.chart.map((item, i) => {
const compItem = props.compData!.chart[i];
const newItem = { ...item };
if (!compItem) return newItem;
Object.keys(compItem).forEach((key) => {
if (key !== 'timestamp' && key !== 'time') {
newItem[key] = compItem[key];