mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
fix: handle an error in a table with subqueries
This commit is contained in:
parent
083044c3e2
commit
e3534dca20
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ const TableView: FC<GraphViewProps> = ({data}) => {
|
||||||
const rows: InstantDataSeries[] = useMemo(() => {
|
const rows: InstantDataSeries[] = useMemo(() => {
|
||||||
return data?.map(d => ({
|
return data?.map(d => ({
|
||||||
metadata: sortedColumns.map(c => d.metric[c.key] || "-"),
|
metadata: sortedColumns.map(c => d.metric[c.key] || "-"),
|
||||||
value: d.value[1]
|
value: d.value ? d.value[1] : "-"
|
||||||
}));
|
}));
|
||||||
}, [sortedColumns, data]);
|
}, [sortedColumns, data]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue