Fix not updating reader "Add to Note" button regression

This commit is contained in:
Martynas Bagdonas 2024-01-30 09:30:28 +08:00
parent b3cf2ac67e
commit a12c032ab9

View file

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