diff --git a/web/js/wsclient.js b/web/js/wsclient.js index 19f02fb..b600512 100644 --- a/web/js/wsclient.js +++ b/web/js/wsclient.js @@ -134,7 +134,7 @@ function updateItemValue(id, type, value) { case 30: // RGB var $colorPicker = $('#colorpicker-' + id); - $colorPicker.spectrum('set', 'rgb(' + value.red + ', ' + value.green + ', ' + value.blue + ')'); + $colorPicker.spectrum('set', 'rgb(' + value[0] + ', ' + value[1] + ', ' + value[2] + ')'); break; }