Skip to content

Commit 89bb7e8

Browse files
authored
Fix js error in workflow-buttons.js (#32292)
1 parent bbaac95 commit 89bb7e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build/media_source/com_workflow/js/admin-items-workflow-buttons.es6.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ Joomla.toggleAllNextElements = (element, className) => {
3939

4040
document.addEventListener('DOMContentLoaded', () => {
4141
const dropDownBtn = document.getElementById('toolbar-status-group');
42+
43+
if (!dropDownBtn) {
44+
return;
45+
}
46+
4247
const transitions = [].slice.call(dropDownBtn.querySelectorAll('.button-transition'));
4348
const headline = dropDownBtn.querySelector('.button-transition-headline');
4449
const separator = dropDownBtn.querySelector('.button-transition-separator');

0 commit comments

Comments
 (0)