Chore: Save Presentation Data Before exports
This commit is contained in:
parent
a450afc3a2
commit
ea1db315d0
1 changed files with 5 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue