Fixed a couple of SonarQube issues.

This commit is contained in:
Aditya Toshniwal authored and Akshay Joshi committed 2022-09-10 14:04:28 +05:30
1 parent 43022b7aa2
commit b128ba2f57
16 files changed
+175 -145

No files matched your search

@@ -134,7 +134,7 @@ export default function Dashboard({
if (!did) {
tabs.push(gettext('Configuration'));
}
tabVal == 3 && did && setTabVal(0);
const tabChanged = (e, tabVal) => {
setTabVal(tabVal);
};
@@ -725,6 +725,10 @@ export default function Dashboard({
'Please connect to the selected server to view the dashboard.'
);
if(tabVal == 3 && did) {
setTabVal(0);
}
if (sid && props.serverConnected) {
if (tabVal === 0) {