mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-27 03:35:50 +03:00
For page not loading when logged out
Because path is undefined
This commit is contained in:
parent
d9564bff72
commit
55d8908cf5
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ export default function useTitle(title, path) {
|
|||
let matched = false;
|
||||
if (paths.length) {
|
||||
matched = paths.some((p) => matchPath(p, currentLocation));
|
||||
} else {
|
||||
} else if (path) {
|
||||
matched = matchPath(path, currentLocation);
|
||||
}
|
||||
console.debug({ paths, matched, currentLocation });
|
||||
|
|
Loading…
Reference in a new issue