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 ccc242c69a.
This commit is contained in:
Yury Molodov 2021-11-30 02:02:11 +03:00 committed by GitHub
parent 98d244b288
commit 624ad73705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]);