activeOverlays should return empty list if no overlays are set

This commit is contained in:
Laura Klünder 2025-01-22 21:59:22 +01:00
parent 9ffd6131fb
commit 38c705717b

View file

@ -2266,6 +2266,7 @@ c3nav = {
},
activeOverlays: function () {
if (!c3nav._overlayControl) return [];
return Object.values(c3nav._overlayControl._overlays).filter(o => o.active);
},