From 976c5fc05f843c352b68b9722c1aef0ae2248c8a Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Mon, 26 Jan 2026 21:42:21 +0100 Subject: [PATCH] adad --- public/assets/js/ui-editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/assets/js/ui-editor.js b/public/assets/js/ui-editor.js index 46eac94..bb5c67e 100644 --- a/public/assets/js/ui-editor.js +++ b/public/assets/js/ui-editor.js @@ -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;