mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-18 16:21:37 +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;
|
let matched = false;
|
||||||
if (paths.length) {
|
if (paths.length) {
|
||||||
matched = paths.some((p) => matchPath(p, currentLocation));
|
matched = paths.some((p) => matchPath(p, currentLocation));
|
||||||
} else {
|
} else if (path) {
|
||||||
matched = matchPath(path, currentLocation);
|
matched = matchPath(path, currentLocation);
|
||||||
}
|
}
|
||||||
console.debug({ paths, matched, currentLocation });
|
console.debug({ paths, matched, currentLocation });
|
||||||
|
|
Loading…
Add table
Reference in a new issue