Skip to content

Commit

Permalink
fix: Return entry object instead of an empty array in catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
bramses committed Aug 17, 2024
1 parent 0135d4e commit 041513e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/[locale]/(auth)/dashboard/garden/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const GardenDaily = () => {
};
} catch (aliasError) {
console.error('Error fetching aliases:', aliasError);
return [];
return { ...entry };
}
}
return entry;
Expand Down

0 comments on commit 041513e

Please sign in to comment.