forked from Gitlink/forgeplus-react
fix
This commit is contained in:
parent
7a42daa920
commit
39fa2610df
|
|
@ -247,12 +247,7 @@ class NewHeader extends Component {
|
|||
matchpaths = (url) => {
|
||||
const { match } = this.props;
|
||||
if (url) {
|
||||
// if (match.path.indexOf(url) > -1) {
|
||||
if (match.path == url) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
return match.path.includes(url)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue