Zotero: avoid error on keypress

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8071486fe0d8c6ed157dc2565d2aff871f8002fd
This commit is contained in:
Szymon Kłos 2022-12-19 14:19:38 +01:00 committed by Szymon Kłos
parent 5bb2949da6
commit fb854ffc1f

View file

@ -360,6 +360,8 @@ L.Control.Zotero = L.Control.extend({
var that = this;
if (element === 'dialog' && action === 'close') return;
if (element === 'treeview') {
if (action == 'keydown')
return;
if (data.id === 'zoterocategory') {
var url = index;
if (!url)