diff --git a/public/index.html b/public/index.html index 426485b..497e075 100644 --- a/public/index.html +++ b/public/index.html @@ -3181,7 +3181,7 @@ async function restoreVersion() { if (!v) return; const snap = JSON.parse(v.Snapshot); const { Title, Acte, Ordre, Personnage, Tags, Notes } = snap; - const data = { Title, Acte: Acte || 'En attente', Ordre: Ordre || 999, Personnage, Tags, Notes, 'Résumé': snap['Résumé'], 'Intérêt narratif': snap['Intérêt narratif'], Implications: snap.Implications, Origine: snap.Origine, 'Lien rédaction': snap['Lien rédaction'] }; + const data = { Title, Acte: 'En attente', Ordre: 999, Personnage, Tags, Notes, 'Résumé': snap['Résumé'], 'Intérêt narratif': snap['Intérêt narratif'], Implications: snap.Implications, Origine: snap.Origine, 'Lien rédaction': snap['Lien rédaction'] }; const r = await fetch('/api/records', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }); if (r.ok) { closeVersionPanel();