This commit is contained in:
2026-01-26 21:42:21 +01:00
parent 391b2c0340
commit 976c5fc05f

View File

@@ -376,7 +376,8 @@ export function initEditor() {
if (selectionToKeep && versionMap.has(selectionToKeep)) { if (selectionToKeep && versionMap.has(selectionToKeep)) {
fallbackId = selectionToKeep; fallbackId = selectionToKeep;
} else { } else {
fallbackId = activeId || (rows[0] ? String(rows[0].id) : ''); // Default to the latest version so reopening shows the most recent edits.
fallbackId = (rows[0] ? String(rows[0].id) : '') || activeId;
} }
if (fallbackId) { if (fallbackId) {
lastVersionSelection = fallbackId; lastVersionSelection = fallbackId;