Fix regression that prevents showing new notes in contextPane notes list

This commit is contained in:
Martynas Bagdonas 2022-07-21 13:27:12 +03:00 committed by Dan Stillman
parent 1955427d62
commit b02ad0dc83

View file

@ -238,7 +238,7 @@ var ZoteroContextPane = new function () {
} }
else { else {
let libraryID = _notesPaneDeck.selectedPanel.getAttribute('data-library-id'); let libraryID = _notesPaneDeck.selectedPanel.getAttribute('data-library-id');
_notesPaneDeck.selectedPanel.setAttribute('selectedIndex', _globalDeckIndex[libraryID]); _notesPaneDeck.selectedPanel.setAttribute('selectedIndex', _globalDeckIndex[libraryID] || 0);
} }
})(); })();
} }