diff --git a/packages/gitbook/src/components/Adaptive/AIPageLinkSummary.tsx b/packages/gitbook/src/components/Adaptive/AIPageLinkSummary.tsx index 3f50c88a2..a7cb3e1a9 100644 --- a/packages/gitbook/src/components/Adaptive/AIPageLinkSummary.tsx +++ b/packages/gitbook/src/components/Adaptive/AIPageLinkSummary.tsx @@ -56,18 +56,21 @@ export function AIPageLinkSummary(props: { }, [currentSpaceId, currentPageId, targetSpaceId, targetPageId]); return ( -
{highlight}
: null} + {highlight.length > 0 ? ( +