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)) {
fallbackId = selectionToKeep;
} 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) {
lastVersionSelection = fallbackId;