Skip to content

Commit

Permalink
address string or number check
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Sep 18, 2018
1 parent fdd9da7 commit 4d81960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/assets/src/visualizations/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function TableVis(element, props) {
// Add percent metrics
.concat((percentMetrics || []).map(m => '%' + m))
// Removing metrics (aggregates) that are strings
.filter(m => !Number.isNaN(data[0][m]));
.filter(m => (typeof data[0][m]) === 'number');

function col(c) {
const arr = [];
Expand Down

0 comments on commit 4d81960

Please sign in to comment.