File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/ui/src/pages/widget Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export function CommentWidgetPage(props: PageCommentProps): JSX.Element {
7878 refetchInterval,
7979 } ,
8080 ) ;
81- const { data : pinnedComments } = trpc . comment . pinnedComments . useQuery ( {
81+ const { data : pinnedComments = [ ] } = trpc . comment . pinnedComments . useQuery ( {
8282 url : props . page . url ,
8383 } ) ;
8484
@@ -93,7 +93,7 @@ export function CommentWidgetPage(props: PageCommentProps): JSX.Element {
9393 '@context' : 'https://schema.org' ,
9494 '@type' : 'DiscussionForumPosting' ,
9595 url : props . page . url ,
96- comment : comments . map ( ( comment : ForestComment ) =>
96+ comment : [ ... comments , ... pinnedComments ] . map ( ( comment : ForestComment ) =>
9797 createCommentJsonLd ( comment , props . page . url ) ,
9898 ) as Comment [ ] ,
9999 } ;
You can’t perform that action at this time.
0 commit comments