Skip to content

Commit fa65e7f

Browse files
committed
Fix isTagActive
1 parent 71d27d0 commit fa65e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser/main/SideNav/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ class SideNav extends React.Component {
440440

441441
const style = {}
442442
if (!isFolded) style.width = this.props.width
443-
const isTagActive = location.pathname.match(/tag/)
443+
const isTagActive = !!location.pathname.match(/tag/)
444444
return (
445445
<div className='SideNav'
446446
styleName={isFolded ? 'root--folded' : 'root'}

0 commit comments

Comments
 (0)