From e3534dca20a97285b1133229946f5c145187e37e Mon Sep 17 00:00:00 2001 From: Yury Moladau Date: Tue, 23 Nov 2021 16:52:24 +0300 Subject: [PATCH] fix: handle an error in a table with subqueries --- app/vmui/packages/vmui/src/components/Home/Views/TableView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmui/packages/vmui/src/components/Home/Views/TableView.tsx b/app/vmui/packages/vmui/src/components/Home/Views/TableView.tsx index af41b062e..9c94ea05d 100644 --- a/app/vmui/packages/vmui/src/components/Home/Views/TableView.tsx +++ b/app/vmui/packages/vmui/src/components/Home/Views/TableView.tsx @@ -24,7 +24,7 @@ const TableView: FC = ({data}) => { const rows: InstantDataSeries[] = useMemo(() => { return data?.map(d => ({ metadata: sortedColumns.map(c => d.metric[c.key] || "-"), - value: d.value[1] + value: d.value ? d.value[1] : "-" })); }, [sortedColumns, data]);