FIX: Histogram module selected value not displayed (#1510)

The histogram module values are "true" and "false".
jQuery would coerce them to Boolean true and false instead of String
"true" and "false" which would result in empty value being displayed.

Resolves #1295
This commit is contained in:
Vladimir Mikulic
2020-01-17 16:44:05 -05:00
committed by Jeffrey Warren
parent c703836198
commit afc903192c
2 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ module.exports = function Channel(options, UI) {
const pixelSetter = require('../../util/pixelSetter.js');
options.gradient = options.gradient || defaults.gradient;
options.gradient = JSON.parse(options.gradient);
options.gradient = String(JSON.parse(options.gradient));
progressObj.stop(true);
progressObj.overrideFlag = true;