From 624ad737053701d7f1b7dcf7e8f900307c67b62d Mon Sep 17 00:00:00 2001 From: Yury Molodov Date: Tue, 30 Nov 2021 02:02:11 +0300 Subject: [PATCH] vmui: handle an error in a table with subqueries (#1854) * fix: handle an error in a table with subqueries * feat: store display type in URL * Revert "feat: store display type in URL" This reverts commit ccc242c69a32f5065a8d495821d6861d70830a50. --- 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 af41b062e5..9c94ea05d4 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]);