Chore: Save Presentation Data Before exports

This commit is contained in:
shiva raj badu 2025-07-26 19:47:46 +05:45
parent a450afc3a2
commit ea1db315d0
No known key found for this signature in database

View file

@ -56,6 +56,9 @@ const Header = ({
try {
setOpen(false);
setShowLoader(true);
// Save the presentation data before exporting
await PresentationGenerationApi.updatePresentationContent(presentationData);
const pptx_model = await get_presentation_pptx_model(presentation_id);
if (!pptx_model) {
@ -86,6 +89,8 @@ const Header = ({
try {
setOpen(false);
setShowLoader(true);
// Save the presentation data before exporting
await PresentationGenerationApi.updatePresentationContent(presentationData);
const response = await fetch('/api/export-as-pdf', {
method: 'POST',