fix: revert header changes

fix: null pointer check
This commit is contained in:
Sérgio Salgado 2022-01-14 07:08:20 +00:00
parent 5f259dc9d3
commit 7b069c3e7b
2 changed files with 7 additions and 7 deletions

View file

@ -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)