activeOverlays should return empty list if no overlays are set
This commit is contained in:
parent
9ffd6131fb
commit
38c705717b
1 changed files with 1 additions and 0 deletions
|
@ -2266,6 +2266,7 @@ c3nav = {
|
|||
},
|
||||
|
||||
activeOverlays: function () {
|
||||
if (!c3nav._overlayControl) return [];
|
||||
return Object.values(c3nav._overlayControl._overlays).filter(o => o.active);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue