fix: zotero options not visible when viewId is zero

- regression from 9202365fc6

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: I4554a5fcc9b0c5dce48c8b35ea32142ff1c323f3
This commit is contained in:
Rashesh Padia 2024-04-28 14:57:43 +05:30 committed by Szymon Kłos
parent 1a1835bd90
commit 7a75153290

View file

@ -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;