diff --git a/servers/nextjs/app/(presentation-generator)/outline/components/TemplateSelection.tsx b/servers/nextjs/app/(presentation-generator)/outline/components/TemplateSelection.tsx index d48dae07..d584fc74 100644 --- a/servers/nextjs/app/(presentation-generator)/outline/components/TemplateSelection.tsx +++ b/servers/nextjs/app/(presentation-generator)/outline/components/TemplateSelection.tsx @@ -35,7 +35,7 @@ const TemplateSelection: React.FC = ({ const map: Record = {}; if (data && Array.isArray(data.presentations)) { for (const p of data.presentations) { - const slug = `custom-${p.presentation}`; + const slug = `custom-${p.presentation_id}`; map[slug] = { lastUpdatedAt: p.last_updated_at ? new Date(p.last_updated_at).getTime() : 0, name: p.template?.name, diff --git a/servers/nextjs/app/(presentation-generator)/template-preview/page.tsx b/servers/nextjs/app/(presentation-generator)/template-preview/page.tsx index ef19e1a5..ef11baac 100644 --- a/servers/nextjs/app/(presentation-generator)/template-preview/page.tsx +++ b/servers/nextjs/app/(presentation-generator)/template-preview/page.tsx @@ -46,7 +46,7 @@ const LayoutPreview = () => { const map: Record = {}; if (data && Array.isArray(data.presentations)) { for (const p of data.presentations) { - const slug = `custom-${p.presentation}`; + const slug = `custom-${p.presentation_id}`; map[slug] = { lastUpdatedAt: p.last_updated_at ? new Date(p.last_updated_at).getTime() : 0, name: p.template?.name,