diff --git a/deluge/ui/web/js/Deluge.Sidebar.js b/deluge/ui/web/js/Deluge.Sidebar.js index 135a3b333..48ff30356 100644 --- a/deluge/ui/web/js/Deluge.Sidebar.js +++ b/deluge/ui/web/js/Deluge.Sidebar.js @@ -183,8 +183,8 @@ Copyright: } // Perform a cleanup of fitlers that aren't enabled any more - Ext.each(Ext.getKeys(this.panels), function(filter) { - if (Ext.getKeys(filters).indexOf(filter) == -1) { + Ext.each(Ext.keys(this.panels), function(filter) { + if (Ext.keys(filters).indexOf(filter) == -1) { // We need to remove the panel } });