mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-02 20:30:17 -06:00
Fixed a couple of SonarQube issues.
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user