JournalView: avoid null dereference on quick tab switch
the updateView method can be called through an XHR request callback, which may get triggered once the user switched already over to another panel and viewmodel isn't valid (or did not get valid at the first place) anymore. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8f9e331d8c
commit
865be88ed5
@ -62,7 +62,7 @@ Ext.define('Proxmox.panel.JournalView', {
|
||||
var me = this;
|
||||
var view = me.getView();
|
||||
var viewmodel = me.getViewModel();
|
||||
if (viewmodel.get('livemode') !== livemode) {
|
||||
if (!viewmodel || viewmodel.get('livemode') !== livemode) {
|
||||
return; // we switched mode, do not update the content
|
||||
}
|
||||
var contentEl = me.lookup('content');
|
||||
|
Loading…
x
Reference in New Issue
Block a user