diff --git a/lib/cartodb/models/dataview/histogram.js b/lib/cartodb/models/dataview/histogram.js index a1e08494..8624efc5 100644 --- a/lib/cartodb/models/dataview/histogram.js +++ b/lib/cartodb/models/dataview/histogram.js @@ -323,7 +323,7 @@ module.exports = class Histogram extends BaseWidget { constructor (query, options, queries) { super(); - if (!_.isString(options.column)) { + if (typeof options.column !== 'string') { throw new Error('Histogram expects `column` in widget options'); }