Restauration d'archive → toujours en liste d'attente
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -3181,7 +3181,7 @@ async function restoreVersion() {
|
|||||||
if (!v) return;
|
if (!v) return;
|
||||||
const snap = JSON.parse(v.Snapshot);
|
const snap = JSON.parse(v.Snapshot);
|
||||||
const { Title, Acte, Ordre, Personnage, Tags, Notes } = snap;
|
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) });
|
const r = await fetch('/api/records', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) });
|
||||||
if (r.ok) {
|
if (r.ok) {
|
||||||
closeVersionPanel();
|
closeVersionPanel();
|
||||||
|
|||||||
Reference in New Issue
Block a user