diff --git a/frontend/appflowy_web_app/src/components/publish/outline/OutlineItem.tsx b/frontend/appflowy_web_app/src/components/publish/outline/OutlineItem.tsx index 7b9f1d7950..73d78a2cc0 100644 --- a/frontend/appflowy_web_app/src/components/publish/outline/OutlineItem.tsx +++ b/frontend/appflowy_web_app/src/components/publish/outline/OutlineItem.tsx @@ -36,12 +36,18 @@ function OutlineItem({ view }: { view: PublishViewInfo }) { const navigateToView = useContext(PublishContext)?.toView; const renderItem = (item: PublishViewInfo) => { const { icon, layout, name, view_id } = item; + const hasChildren = Boolean(item.child_views?.length); return ( -