From b02ad0dc834dec73439a447ca589002244541264 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Thu, 21 Jul 2022 13:27:12 +0300 Subject: [PATCH] Fix regression that prevents showing new notes in contextPane notes list --- 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 679eb6801d..c6b720a951 100644 --- a/chrome/content/zotero/contextPane.js +++ b/chrome/content/zotero/contextPane.js @@ -238,7 +238,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); } })(); }