fix: handle an error in a table with subqueries

This commit is contained in:
Yury Moladau 2021-11-23 16:52:24 +03:00
parent 083044c3e2
commit e3534dca20

View file

@ -24,7 +24,7 @@ const TableView: FC<GraphViewProps> = ({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]);