File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ export default async function Home({
2626 after : searchParams . after as string | undefined ,
2727 before : searchParams . before as string | undefined ,
2828 } ) ;
29+ if ( threads . error ) {
30+ console . error ( threads . error )
31+ }
2932
3033 return (
3134 < >
Original file line number Diff line number Diff line change @@ -12,14 +12,20 @@ export default async function ThreadPage({
1212} ) {
1313 const threadId = params . threadId ;
1414
15- const { data } = await fetchThreadTimelineEntries ( {
15+ const { data, error } = await fetchThreadTimelineEntries ( {
1616 threadId,
1717 first : 100 ,
1818 } ) ;
1919
20+ if ( error ) {
21+ console . error ( error ) ;
22+ return null ;
23+ }
24+
2025 if ( ! data ) {
2126 return null ;
2227 }
28+
2329
2430 const thread = data . thread ;
2531 const timelineEntries = thread . timelineEntries ;
You can’t perform that action at this time.
0 commit comments