ui: fix table crash
This commit is contained in:
parent
7e4782ae71
commit
99d6545720
1 changed files with 1 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue