We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a848a9 commit daa5e8bCopy full SHA for daa5e8b
src/pageLayout/containers/TreeNav.tsx
@@ -47,14 +47,17 @@ const TreeSidebar: FC<ReduxProps & RouteComponentProps> = () =>
47
const helpBarMenu = document.querySelectorAll<HTMLElement>(
48
'.cf-tree-nav--sub-menu-trigger'
49
)[3]
50
+ if (!helpBarMenu) {
51
+ return
52
+ }
53
if (navbarMode === 'expanded') {
54
helpBarMenu.style.display = 'block'
55
helpBarMenu.style.width = '243px'
56
} else {
57
helpBarMenu.style.width = '44px'
58
}
59
- }, [setNavbarMode, navbarMode])
60
+ }, [navbarMode])
61
62
if (presentationMode || !org) {
63
return null
0 commit comments