fix: add pointCode to ReviewPointResult interface to survive build

Vite/Remix tree-shaking was stripping pointCode from the return object
because it wasn't declared in the ReviewPointResult interface.
Also removed debug console.logs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-23 20:33:38 +08:00
parent ca1cc23c99
commit 7ad9e479cd
2 changed files with 2 additions and 13 deletions
+2 -6
View File
@@ -75,6 +75,7 @@ interface EvaluationPointGroup {
interface ReviewPointResult {
id: string | number;
title: string;
pointCode?: string;
groupName: string;
status: string;
content: string;
@@ -364,12 +365,7 @@ export async function getReviewPoints(fileId: string, request: Request) {
pointsMap.set(point.id, point);
});
// DEBUG: check if code field exists in point data
if (evaluationPointsData.length > 0) {
const sample = evaluationPointsData[0];
console.log('[DEBUG] point sample keys:', Object.keys(sample));
console.log('[DEBUG] point sample code:', sample.code, 'name:', sample.name);
}
// console.log('pointsMap-------', pointsMap);
const groupsMap = new Map<string | number, EvaluationPointGroup>();
groupsData.forEach(group => {