Use typeof !== string instead of underscore's equivalent
This commit is contained in:
parent
6e0dc8666d
commit
8ac041805c
@ -323,7 +323,7 @@ module.exports = class Histogram extends BaseWidget {
|
|||||||
constructor (query, options, queries) {
|
constructor (query, options, queries) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
if (!_.isString(options.column)) {
|
if (typeof options.column !== 'string') {
|
||||||
throw new Error('Histogram expects `column` in widget options');
|
throw new Error('Histogram expects `column` in widget options');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user