Browse Source

Pass empty array to HueChart.Data if data is undefined.

Marcus McLaughlin 15 years ago
parent
commit
40a899ae23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/static/js/Source/Hue/HueChart.js

+ 1 - 1
desktop/core/static/js/Source/Hue/HueChart.js

@@ -157,7 +157,7 @@ HueChart = new Class({
 		
 		//Change full data object
 		setData: function(data, metadata) {
-				this.data = new HueChart.Data(data);
+				this.data = new HueChart.Data(data || []);
 				delete this.currentData;
 				if (this.hasData() && this.initializeData) this.initializeData(metadata);
 		},