summaryrefslogtreecommitdiffstats
path: root/web/dashboard.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/dashboard.js')
-rwxr-xr-xweb/dashboard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/dashboard.js b/web/dashboard.js
index b0c358b501..8955e3441a 100755
--- a/web/dashboard.js
+++ b/web/dashboard.js
@@ -1982,7 +1982,7 @@
var c = $(this.element).data('colors');
// this.log('read colors: ' + c);
- if(typeof c !== 'undefined' && c !== null) {
+ if(typeof c !== 'undefined' && c !== null && c.length > 0) {
if(typeof c !== 'string') {
this.log('invalid color given: ' + c + ' (give a space separated list of colors)');
}