[pve-devel] [PATCH] fix c656f6fb579a2cb3813208e3bd28d76afe9a0feb
Stefan Priebe
s.priebe at profihost.ag
Thu Jun 13 13:59:28 CEST 2013
Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
www/manager/panel/RRDView.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/manager/panel/RRDView.js b/www/manager/panel/RRDView.js
index 84d2450..4ecb95e 100644
--- a/www/manager/panel/RRDView.js
+++ b/www/manager/panel/RRDView.js
@@ -18,7 +18,7 @@ Ext.define('PVE.panel.RRDView', {
var stateinit = sp.get(stateid);
if (!me.timeframe) {
- if(stateinit.timeframe){
+ if(stateinit && stateinit.timeframe){
me.timeframe = stateinit.timeframe;
}else{
me.timeframe = 'hour';
@@ -26,7 +26,7 @@ Ext.define('PVE.panel.RRDView', {
}
if (!me.rrdcffn) {
- if(stateinit.rrdcffn){
+ if(stateinit && stateinit.rrdcffn){
me.rrdcffn = stateinit.cf;
}else{
me.rrdcffn = 'AVERAGE';
--
1.7.10.4
More information about the pve-devel
mailing list