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:
@@ -781,13 +781,6 @@ export function ReviewPointsList({
|
||||
* 过滤评查点
|
||||
* 根据搜索文本和状态过滤条件筛选评查点
|
||||
*/
|
||||
// DEBUG: check all keys on first reviewPoint
|
||||
if (reviewPoints.length > 0) {
|
||||
console.log('[DEBUG] ALL KEYS:', Object.keys(reviewPoints[0]));
|
||||
console.log('[DEBUG] pointCode:', reviewPoints[0].pointCode);
|
||||
console.log('[DEBUG] full object sample:', JSON.stringify(reviewPoints[0]).substring(0, 500));
|
||||
}
|
||||
|
||||
const filteredReviewPoints = reviewPoints.filter(point => {
|
||||
// 匹配搜索文本
|
||||
const matchesSearch = searchText === '' ||
|
||||
|
||||
Reference in New Issue
Block a user