mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 00:38:49 +01:00
Fix undefined turned into a "undefined" string due to string concat
This commit is contained in:
parent
d8e6d349a0
commit
e57b362ee0
1 changed files with 3 additions and 1 deletions
|
@ -323,7 +323,9 @@ function StatusPage() {
|
|||
|
||||
const closeLink = useMemo(() => {
|
||||
const { prevLocation } = snapStates;
|
||||
const pathname = prevLocation?.pathname + (prevLocation?.search || '');
|
||||
const pathname =
|
||||
(prevLocation?.pathname || '') + (prevLocation?.search || '');
|
||||
console.log('X', typeof pathname);
|
||||
if (
|
||||
!pathname ||
|
||||
matchPath('/:instance/s/:id', pathname) ||
|
||||
|
|
Loading…
Reference in a new issue