fix: undefined err
This commit is contained in:
parent
598d6d00e4
commit
adbb6037ac
1 changed files with 1 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ export function Session() {
|
||||||
// Auto-navigate to whichever session currently needs permission input
|
// Auto-navigate to whichever session currently needs permission input
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
const currentSession = session()
|
const currentSession = session()
|
||||||
|
if (!currentSession) return
|
||||||
const currentPermissions = permissions()
|
const currentPermissions = permissions()
|
||||||
let targetID = currentPermissions.length > 0 ? currentSession.id : undefined
|
let targetID = currentPermissions.length > 0 ? currentSession.id : undefined
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue