Skip to content

Commit ba20ee5

Browse files
lukiomattlorimer
authored andcommitted
FIX #9344 Error in Browsers console after adding tabs to Quickcreate: selectTabOnError
Found that the name of the function selectTabOnError has been declared twice at the theme SuiteP If I change the definition of the function from let to var it does not throws the error on the javascript console.
1 parent 7f610b1 commit ba20ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/SuiteP/include/DetailView/DetailView.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
$('#content div.panel-content div.panel.tab-panel-' + tab).show();
334334
};
335335

336-
let selectTabOnError = function(tab) {
336+
var selectTabOnError = function(tab) {
337337
selectTabDetailView(tab);
338338
$('#content ul.nav.nav-tabs > li').removeClass('active');
339339
$('#content ul.nav.nav-tabs > li a').css('color', '');

0 commit comments

Comments
 (0)