diff --git a/src/components/headline-tree.tsx b/src/components/headline-tree.tsx index cbc585c..2295ddf 100644 --- a/src/components/headline-tree.tsx +++ b/src/components/headline-tree.tsx @@ -2,7 +2,6 @@ import { Badge } from "@/components/ui/badge"; import type { HeadlineNode } from "@/app/actions"; -import { cn } from "@/lib/utils"; interface HeadlineTreeProps { headlines: HeadlineNode[]; @@ -16,9 +15,9 @@ const HeadlineNodeDisplay = ({ level: number; }) => { return ( -
+ <>
- {node.children && node.children.length > 0 && ( -
- {node.children.map((child, index) => ( - - ))} -
- )} -
+ {node.children?.map((child, index) => ( + + ))} + ); }; export function HeadlineTree({ headlines }: HeadlineTreeProps) { return (
- {headlines.map((headline, index) => ( - - ))} +
+ {headlines.map((headline, index) => ( + + ))} +
); } \ No newline at end of file