Skip to content

Commit e06010f

Browse files
committed
Fix activate item button in frontend display by retricting active item selection
Previously, other images where added while implementing streaming support. Now the selector should be more specific to match the right image item in carusel.
1 parent 4dc97a2 commit e06010f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/jinja2/frontend/dashboard.display.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
return '{{ url('fe_dashboard_display') }}?action=display.set&item=' + item;
113113
}
114114
function setItem() {
115-
const caruselItem = document.querySelector('.carousel-item.active img');
115+
const caruselItem = document.querySelector('.carousel-item.active img[item]');
116116
window.location.href = activateItemUrl(caruselItem.getAttribute('item'));
117117
}
118118
const uploadedFiles = [];

0 commit comments

Comments
 (0)