Delete session returns to track list without history.back race
This commit is contained in:
parent
165e7e7e9c
commit
23db25dc8c
1 changed files with 3 additions and 2 deletions
|
|
@ -2485,8 +2485,9 @@ async function showSessionDetail(sessionId) {
|
|||
if (del) del.onclick = async () => {
|
||||
await DB.deleteGpsSession(sessionId);
|
||||
document.querySelector(".modal-overlay")?.remove();
|
||||
history.back();
|
||||
renderScreen("gps");
|
||||
// Remove modal popstate handler, go to gps screen
|
||||
history.replaceState({ screen: "gps" }, "");
|
||||
renderScreen("gps", true);
|
||||
};
|
||||
}, 100);
|
||||
} catch(e) { console.error("[showSessionDetail] error:", e, JSON.stringify(e)); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue