fix(tui): --continue selects wrong session (#5513)
parent
fc3ffb2bf9
commit
fdf560c343
|
|
@ -218,7 +218,9 @@ function App() {
|
|||
let continued = false
|
||||
createEffect(() => {
|
||||
if (continued || sync.status !== "complete" || !args.continue) return
|
||||
const match = sync.data.session.find((x) => x.parentID === undefined)?.id
|
||||
const match = sync.data.session
|
||||
.toSorted((a, b) => b.time.updated - a.time.updated)
|
||||
.find((x) => x.parentID === undefined)?.id
|
||||
if (match) {
|
||||
continued = true
|
||||
route.navigate({ type: "session", sessionID: match })
|
||||
|
|
|
|||
Loading…
Reference in New Issue