Skip to content

Commit a77d007

Browse files
committed
Fixed presentation generation crash
1 parent 9fa21b5 commit a77d007

File tree

4 files changed

+300
-319
lines changed

4 files changed

+300
-319
lines changed

scripts/generate-presentation.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,15 +1440,15 @@ async function generatePresentation(filePath, manifest, config) {
14401440
const presentationUrl = `/presentations/${join(dirname(relativePath), outputFileName)}`;
14411441
manifest[relativePath] = {
14421442
presentationUrl,
1443-
slideCount: processedPresentation.slides.length,
1444-
estimatedDuration: processedPresentation.metadata.estimatedDuration,
1445-
title: processedPresentation.metadata.title,
1443+
slideCount: presentation.slides.length,
1444+
estimatedDuration: presentation.metadata.estimatedDuration,
1445+
title: presentation.metadata.title,
14461446
generatedAt: new Date().toISOString()
14471447
};
14481448

14491449
console.log(` ✅ Generated: ${presentationUrl}`);
1450-
console.log(` 📊 Slides: ${processedPresentation.slides.length}`);
1451-
console.log(` ⏱️ Duration: ${processedPresentation.metadata.estimatedDuration}`);
1450+
console.log(` 📊 Slides: ${presentation.slides.length}`);
1451+
console.log(` ⏱️ Duration: ${presentation.metadata.estimatedDuration}`);
14521452

14531453
return outputPath;
14541454

0 commit comments

Comments
 (0)