Use default values for constructor's arguments
This commit is contained in:
parent
1063d81c1b
commit
a4ecc18f2f
@ -50,7 +50,7 @@ var TYPE = 'formula';
|
||||
}
|
||||
}
|
||||
*/
|
||||
function Formula(query, options, queries) {
|
||||
function Formula(query, options = {}, queries = {}) {
|
||||
if (!_.isString(options.operation)) {
|
||||
throw new Error('Formula expects `operation` in widget options');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user