diff --git a/servers/nextjs/app/(presentation-generator)/outline/components/LayoutSelection.tsx b/servers/nextjs/app/(presentation-generator)/outline/components/LayoutSelection.tsx index 04db37d3..a8f5aa58 100644 --- a/servers/nextjs/app/(presentation-generator)/outline/components/LayoutSelection.tsx +++ b/servers/nextjs/app/(presentation-generator)/outline/components/LayoutSelection.tsx @@ -48,7 +48,12 @@ const LayoutSelection: React.FC = ({ useEffect(() => { if (layoutGroups.length > 0 && !selectedLayoutGroup) { const defaultGroup = layoutGroups.find(g => g.isDefault) || layoutGroups[0]; - onSelectLayoutGroup(defaultGroup); + const slides = getLayoutsByGroup(defaultGroup.id); + + onSelectLayoutGroup({ + ...defaultGroup, + slides: slides, + }); } }, [layoutGroups, selectedLayoutGroup, onSelectLayoutGroup]); diff --git a/servers/nextjs/app/(presentation-generator)/outline/components/OutlineItem.tsx b/servers/nextjs/app/(presentation-generator)/outline/components/OutlineItem.tsx index acbc49b0..cdfc4374 100644 --- a/servers/nextjs/app/(presentation-generator)/outline/components/OutlineItem.tsx +++ b/servers/nextjs/app/(presentation-generator)/outline/components/OutlineItem.tsx @@ -108,7 +108,7 @@ export function OutlineItem({ {isStreaming ?