Skip to content

Commit

Permalink
[4.3] Guided Tours fix js error (#40282)
Browse files Browse the repository at this point in the history
  • Loading branch information
heelc29 authored Apr 2, 2023
1 parent 3765fdf commit 04b9ee8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ document.querySelector('body').addEventListener('click', (event) => {

// Click button but missing data-id
if (typeof event.target.getAttribute('data-id') === 'undefined' || event.target.getAttribute('data-id') <= 0) {
Joomla.renderMessages([Joomla.Text._('PLG_SYSTEM_GUIDEDTOURS_COULD_NOT_LOAD_THE_TOUR')]);
Joomla.renderMessages({ error: [Joomla.Text._('PLG_SYSTEM_GUIDEDTOURS_COULD_NOT_LOAD_THE_TOUR')] });
return;
}

Expand Down

0 comments on commit 04b9ee8

Please sign in to comment.