Skip to content

Commit

Permalink
FIX salesagility#9344 Error in Browsers console after adding tabs to …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
lukio authored and pgorod committed Feb 27, 2023
1 parent 20ee9ed commit 365d88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/SuiteP/include/DetailView/DetailView.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
$('#content div.panel-content div.panel.tab-panel-' + tab).show();
};

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

0 comments on commit 365d88b

Please sign in to comment.