diff --git a/browser/src/control/Control.Zotero.js b/browser/src/control/Control.Zotero.js index d212a6e32..423479f3b 100644 --- a/browser/src/control/Control.Zotero.js +++ b/browser/src/control/Control.Zotero.js @@ -289,6 +289,8 @@ L.Control.Zotero = L.Control.extend({ if (element === 'treeview') { if (data.id === 'zoterocategory') { var url = index; + if (!url) + return; that.items = []; fetch(url) .then(function (response) { return response.json();})