fix: revert header changes
fix: null pointer check
This commit is contained in:
parent
5f259dc9d3
commit
7b069c3e7b
2 changed files with 7 additions and 7 deletions
|
|
@ -132,7 +132,7 @@ const Header = memo(({ tree, user }) => {
|
|||
return (
|
||||
<NavLink
|
||||
key={idx}
|
||||
to={!R.isNil(it.children) ? it.children[0].route : it.route}
|
||||
to={it.route || it.children[0].route}
|
||||
isActive={match => {
|
||||
if (!match) return false
|
||||
setActive(it)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue