[pve-devel] [PATCH pve-manager 2/5] fix delayed store loading

Emmanuel Kasper e.kasper at proxmox.com
Tue Mar 15 14:12:55 CET 2016


Because the store loading delay, it can be that reload() fails on trying to
load an undefined store, if the user switched tabs in the meantime
---
 www/manager6/grid/BackupView.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/grid/BackupView.js b/www/manager6/grid/BackupView.js
index 69b0cc7..f1e28f5 100644
--- a/www/manager6/grid/BackupView.js
+++ b/www/manager6/grid/BackupView.js
@@ -49,7 +49,7 @@ Ext.define('PVE.grid.BackupView', {
 	});
 
 	var reload = Ext.Function.createBuffered(function() {
-	    if (me.store.proxy.url) {
+	    if (me.store && me.store.proxy.url) {
 		me.store.load();
 	    }
 	}, 100);
-- 
2.1.4





More information about the pve-devel mailing list