ensure there is a session id in last-session action
This commit is contained in:
parent
2c7ea44afd
commit
d567664d8b
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ export function parseUrlPath(urlPath, currentNavPath, defaultSessionId) {
|
|||
segments.push(new Segment("room", roomId));
|
||||
} else if (type === "last-session") {
|
||||
let sessionSegment = currentNavPath.get("session");
|
||||
if (!sessionSegment?.value && defaultSessionId) {
|
||||
if (typeof sessionSegment?.value !== "string" && defaultSessionId) {
|
||||
sessionSegment = new Segment("session", defaultSessionId);
|
||||
}
|
||||
if (sessionSegment) {
|
||||
|
|
Reference in a new issue