Generate the pdf beside the json file

This commit is contained in:
NicolasCantu 2025-06-10 13:19:57 +02:00
parent 05f13224fa
commit d6e06f3594

View File

@ -70,6 +70,9 @@ export async function getProcessCreation(container: HTMLElement) {
setTimeout(() => URL.revokeObjectURL(link.href), 1000);
}
await service.generateProcessPdf(processId, newState);
// Add processId to the state we export
newState['process_id'] = processId;
const blob = new Blob([JSON.stringify(newState, null, 2)], { type: 'application/json' });