Explorar o código

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

Marcus McLaughlin %!s(int64=15) %!d(string=hai) anos
pai
achega
40a899ae23
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 		},