File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+
13interface ChangelogEntry {
4+ author : string ;
5+ description : string ;
26 id : string ;
7+ publishedAt : string ;
38 title : string ;
4- description : string ;
59 url : string ;
6- publishedAt : string ;
7- author : string ;
810 filesChanged ?: {
911 added : string [ ] ;
1012 modified : string [ ] ;
@@ -15,7 +17,7 @@ interface ChangelogEntry {
1517async function getChangelogEntries ( ) : Promise < ChangelogEntry [ ] > {
1618 try {
1719 const res = await fetch ( 'https://sentry-content-dashboard.sentry.dev/api/docs' , {
18- next : { revalidate : 3600 } , // Cache for 1 hour
20+ next : { revalidate : 3600 } , // Cache for 1 hour
1921 } ) ;
2022
2123 if ( ! res . ok ) {
@@ -24,7 +26,7 @@ async function getChangelogEntries(): Promise<ChangelogEntry[]> {
2426
2527 return res . json ( ) ;
2628 } catch ( error ) {
27- console . error ( ' Error fetching changelog:' , error ) ;
29+ // Error fetching changelog - return empty array
2830 return [ ] ;
2931 }
3032}
@@ -77,10 +79,10 @@ export async function DocsChangelog() {
7779 < span > •</ span >
7880 < span > by { entry . author } </ span >
7981 { totalFiles > 0 && (
80- < >
82+ < React . Fragment >
8183 < span > •</ span >
8284 < span > { totalFiles } file{ totalFiles !== 1 ? 's' : '' } changed</ span >
83- </ >
85+ </ React . Fragment >
8486 ) }
8587 </ div >
8688 </ header >
You can’t perform that action at this time.
0 commit comments