File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -555,17 +555,17 @@ export default function HomePage() {
555
555
message : 'Fetching issues and pull requests...'
556
556
} ) ;
557
557
558
- await fetchIssuesAndPRs ( fromDate , isOrg )
559
- . catch ( ( err ) => {
560
- console . error ( 'Error fetching issues and PRs:' , err ) ;
561
- setIssuesAndPRs ( [ ] ) ;
562
- } )
563
- . finally ( ( ) => {
564
- if ( allLatestCommits . length > 0 ) {
565
- setProgress ( null ) ;
566
- return generateSummary ( allLatestCommits ) ;
567
- }
568
- } ) ;
558
+ try {
559
+ await fetchIssuesAndPRs ( fromDate , isOrg ) ;
560
+ } catch ( err ) {
561
+ console . error ( 'Error fetching issues and PRs:' , err ) ;
562
+ setIssuesAndPRs ( [ ] ) ;
563
+ }
564
+
565
+ if ( allLatestCommits . length > 0 ) {
566
+ setProgress ( null ) ;
567
+ await generateSummary ( allLatestCommits ) ;
568
+ }
569
569
570
570
} catch ( err ) {
571
571
setError ( err instanceof Error ? err . message : "Failed to fetch commits" ) ;
You can’t perform that action at this time.
0 commit comments