Fixing issue with table viz for table with no metrics (#5205)

This commit is contained in:
michellethomas 2018-06-14 17:15:00 -07:00 committed by Grace Guo
parent 4b7a14de77
commit b60ac5f160
1 changed files with 1 additions and 1 deletions

View File

@ -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