|
|
@@ -186,16 +186,13 @@ function App() {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
+ let continued = false
|
|
|
createEffect(() => {
|
|
|
- if (sync.status !== "complete") return
|
|
|
- if (args.continue) {
|
|
|
- const match = sync.data.session.at(0)?.id
|
|
|
- if (match) {
|
|
|
- route.navigate({
|
|
|
- type: "session",
|
|
|
- sessionID: match,
|
|
|
- })
|
|
|
- }
|
|
|
+ if (continued || sync.status !== "complete" || !args.continue) return
|
|
|
+ const match = sync.data.session.at(0)?.id
|
|
|
+ if (match) {
|
|
|
+ continued = true
|
|
|
+ route.navigate({ type: "session", sessionID: match })
|
|
|
}
|
|
|
})
|
|
|
|