fix little error

This commit is contained in:
tobi 2025-04-09 13:05:05 +02:00
commit 3089ac3780

View file

@ -145,11 +145,11 @@ lightbox.on('uiRegister', function() {
pswp.on('change', () => {
switch (true) {
case pswp.currSlide.data.parentStatus:
// Link to parent status.
// Link to parent status.
el.href = pswp.currSlide.data.parentStatus;
break;
case pswp.currSlide.data.element.dataset.pswpParentStatus:
// Link to parent status.
case pswp.currSlide.data.element && pswp.currSlide.data.element.dataset.pswpParentStatus:
// Link to parent status.
el.href = pswp.currSlide.data.element.dataset.pswpParentStatus;
break;
default: