Skip to content

Commit 04b9ee8

Browse files
authored
[4.3] Guided Tours fix js error (#40282)
1 parent 3765fdf commit 04b9ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/media_source/plg_system_guidedtours/js/guidedtours.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ document.querySelector('body').addEventListener('click', (event) => {
441441

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

0 commit comments

Comments
 (0)