Skip to content

Commit 4fc1b2b

Browse files
authored
fix: small issue with sidebar tabbing (#5928)
1 parent 69f7964 commit 4fc1b2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compass-connections-navigation/src/connections-navigation-tree.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ const ConnectionsNavigationTree: React.FunctionComponent<
101101
return `${activeWorkspace.connectionId}.${activeWorkspace.namespace}`;
102102
}
103103
// Database List (of a connection)
104-
if (activeWorkspace.type === 'Databases') {
104+
if (activeWorkspace.type === 'Databases' && !isSingleConnection) {
105105
return activeWorkspace.connectionId;
106106
}
107107
}
108-
}, [activeWorkspace]);
108+
}, [activeWorkspace, isSingleConnection]);
109109

110110
const getItemActions = useCallback(
111111
(item: SidebarTreeItem) => {

0 commit comments

Comments
 (0)