Fix error when menus haven't been created

This commit is contained in:
Abe Jellinek 2022-03-11 14:02:07 -08:00
parent 52bc93adc9
commit 80bb40b153

View file

@ -1274,6 +1274,7 @@ var ZoteroPane = new function()
for (let i = 0; i < disableIfNoEdit.length; i++) { for (let i = 0; i < disableIfNoEdit.length; i++) {
let command = disableIfNoEdit[i]; let command = disableIfNoEdit[i];
let el = document.getElementById(command); let el = document.getElementById(command);
if (!el) continue;
// If a trash is selected, new collection depends on the // If a trash is selected, new collection depends on the
// editability of the library // editability of the library