Fix sonarqube issues
This commit is contained in:
parent
be9f964c18
commit
a3949c1889
30 changed files with 58 additions and 59 deletions
|
@ -19,8 +19,8 @@ import '../../assets/css/scrollstyles.scss';
|
|||
return null;
|
||||
}
|
||||
|
||||
function removeActivePanelClass(tabs, index) {
|
||||
const tabPanel = getTabPanel(tabs, index);
|
||||
function removeActivePanelClass() {
|
||||
const tabPanel = getTabPanel();
|
||||
if (tabPanel) {
|
||||
tabPanel.classList.remove('is-active');
|
||||
}
|
||||
|
@ -48,10 +48,10 @@ import '../../assets/css/scrollstyles.scss';
|
|||
}
|
||||
}));
|
||||
if (previousIndex != null && previousIndex !== index) {
|
||||
removeActivePanelClass(tabs, previousIndex);
|
||||
removeActivePanelClass();
|
||||
}
|
||||
|
||||
const newPanel = getTabPanel(tabs, index);
|
||||
const newPanel = getTabPanel();
|
||||
|
||||
if (newPanel) {
|
||||
// animate new panel ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue