diff --git a/fhem/www/pgm2/fhemweb_colorpicker.js b/fhem/www/pgm2/fhemweb_colorpicker.js index 6761ffea6..97e18ac87 100644 --- a/fhem/www/pgm2/fhemweb_colorpicker.js +++ b/fhem/www/pgm2/fhemweb_colorpicker.js @@ -81,7 +81,7 @@ FW_colorpickerCreate(elName, devName, vArr, currVal, set, params, cmd) if( cmds[index] ) cmds[index]( parseInt(arg * ranges[index][2]) ); - else + else if( cmd ) cmd( rgb ); }