diff --git a/core/modules/widgets/widget.js b/core/modules/widgets/widget.js index 70405cb67..e1dbb5296 100755 --- a/core/modules/widgets/widget.js +++ b/core/modules/widgets/widget.js @@ -189,7 +189,7 @@ Widget.prototype.getVariableInfo = function(name,options) { } return { text: text, - resultList: text === undefined ? text: [text] + resultList: text === undefined ? text : [text] }; }; @@ -338,7 +338,7 @@ Widget.prototype.makeFakeWidgetWithVariables = function(vars = {}) { const value = vars[name]; return Array.isArray(value) ? { text: value[0], resultList: value } - : { text: value, resultList: value === undefined ? value :[value] }; + : { text: value, resultList: value === undefined ? value : [value] }; } opts = opts || {}; opts.variables = Object.assign({}, vars, opts.variables || {});