8000
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 bd0903a commit 2365228Copy full SHA for 2365228
src/template/CSidebarNavDropdown.js
@@ -45,7 +45,11 @@ const CSidebarNavDropdown = props => {
45
46
const { dropdownMode } = useContext(Context)
47
48
- const path = useLocation().pathname
+ let path = ''
49
+ try {
50
+ path = useLocation().pathname
51
+ } catch (e) {}
52
+
53
useMemo(()=>{
54
if (dropdownMode === 'close') {
55
setIsOpen(false)
0 commit comments