mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01:00
fix: handle an error in a table with subqueries
This commit is contained in:
parent
083044c3e2
commit
e3534dca20
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user