From f938445271ac5599097618480168ee130667022e Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 10 Jan 2024 11:01:33 -0500 Subject: [PATCH] Prevent error when itemsView hasn't been initialized --- chrome/content/zotero/zoteroPane.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index fcef72ac5d..b35f94a4f6 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -2745,7 +2745,7 @@ var ZoteroPane = new function() this.search(); } else { - this.itemsView.focus(); + this.itemsView?.focus(); } } else if (event.keyCode == event.DOM_VK_RETURN) {