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
parent ba5cb7d5c6
commit 0785b3a086

View file

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