mirror of https://github.com/apache/superset.git
Fixing issue with table viz for table with no metrics (#5205)
This commit is contained in:
parent
4b7a14de77
commit
b60ac5f160
|
@ -17,7 +17,7 @@ function tableVis(slice, payload) {
|
|||
const data = payload.data;
|
||||
const fd = slice.formData;
|
||||
|
||||
let metrics = fd.metrics.map(m => m.label || m);
|
||||
let metrics = (fd.metrics || []).map(m => m.label || m);
|
||||
// Add percent metrics
|
||||
metrics = metrics.concat((fd.percent_metrics || []).map(m => '%' + m));
|
||||
// Removing metrics (aggregates) that are strings
|
||||
|
|
Loading…
Reference in New Issue