From 7a7515329075b6e6de59220bba21a783f495c62a Mon Sep 17 00:00:00 2001 From: Rashesh Padia Date: Sun, 28 Apr 2024 14:57:43 +0530 Subject: [PATCH] fix: zotero options not visible when viewId is zero - regression from 9202365fc6dac4ab964c12a1b0858644435e1191 Signed-off-by: Rashesh Padia Change-Id: I4554a5fcc9b0c5dce48c8b35ea32142ff1c323f3 --- browser/src/control/Control.UIManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/src/control/Control.UIManager.js b/browser/src/control/Control.UIManager.js index e1ac82cf1..99e43c2b1 100644 --- a/browser/src/control/Control.UIManager.js +++ b/browser/src/control/Control.UIManager.js @@ -956,7 +956,7 @@ L.Control.UIManager = L.Control.extend({ }, onUpdateViews: function () { - if (!this.map._docLayer || !this.map._docLayer._viewId) + if (!this.map._docLayer || typeof this.map._docLayer._viewId === 'undefined') return; var myViewId = this.map._docLayer._viewId;