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 Aliaksandr Valialkin
parent e4c329f5a8
commit 0108c9d2cc
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

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