Fix error when menus haven't been created
This commit is contained in:
parent
52bc93adc9
commit
80bb40b153
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue