From e737a3b5a405947733862e35ceb9969d1164d0e8 Mon Sep 17 00:00:00 2001 From: shiva raj badu Date: Mon, 22 Sep 2025 17:29:36 +0545 Subject: [PATCH] feat(nextjs): Custom layout name instead of id --- .../outline/components/TemplateSelection.tsx | 2 +- .../app/(presentation-generator)/template-preview/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,