Connect, collaborate, and grow with a community of TypeScript developers
fix 1516 solutions comment linking on second page not working (#1518)
Shane Walkerf877680ee632
diff --git a/apps/web/src/app/challenge/_components/comments/getCommentRouteData.ts b/apps/web/src/app/challenge/_components/comments/getCommentRouteData.tsindex 5b396a86..52859fd7 100644--- a/apps/web/src/app/challenge/_components/comments/getCommentRouteData.ts+++ b/apps/web/src/app/challenge/_components/comments/getCommentRouteData.ts@@ -54,12 +54,11 @@ export async function getPreselectedSolutionCommentMetadata(id: solutionId,challengeId,},- orderBy: {- createdAt: 'desc',- },select: {id: true,- solutionComment: true,+ solutionComment: {+ orderBy: { createdAt: 'desc' },+ },},});