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; });