From 0785b3a0864fc2dfce6ab53a88c08f6d9d1cd5a7 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 3c6db3fae8..b0bcacf2b1 100644 --- a/chrome/content/zotero/contextPane.js +++ b/chrome/content/zotero/contextPane.js @@ -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); } })(); }