fix: undefined err

This commit is contained in:
Aiden Cline 2025-11-20 18:43:58 -06:00
parent 598d6d00e4
commit adbb6037ac

View file

@ -147,6 +147,7 @@ export function Session() {
// Auto-navigate to whichever session currently needs permission input
createEffect(() => {
const currentSession = session()
if (!currentSession) return
const currentPermissions = permissions()
let targetID = currentPermissions.length > 0 ? currentSession.id : undefined