From a12c032ab9849bb58459f6b8f46dde3b56955037 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Tue, 30 Jan 2024 09:30:28 +0800 Subject: [PATCH] Fix not updating reader "Add to Note" button regression --- chrome/content/zotero/contextPane.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/contextPane.js b/chrome/content/zotero/contextPane.js index e3591ace68..5b325d4467 100644 --- a/chrome/content/zotero/contextPane.js +++ b/chrome/content/zotero/contextPane.js @@ -794,7 +794,7 @@ var ZoteroContextPane = new function () { editor.saveSync(); _panesDeck.setAttribute('selectedIndex', 1); _notesPaneDeck.selectedPanel.setAttribute('selectedIndex', 0); - vbox.remove(); + vbox?.remove(); _updateAddToNote(); _preventGlobalDeckChange = true; });