From 37f55540833c2d5894513eca9fc8f7c6233fc2d2 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Thu, 29 May 2025 05:17:13 +0000
Subject: (대표님) 0529 14시 16분 변경사항 저장 (Vendor Data, Docu)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/tbe-tech/table/tbe-table-columns.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lib/tbe-tech/table/tbe-table-columns.tsx')

diff --git a/lib/tbe-tech/table/tbe-table-columns.tsx b/lib/tbe-tech/table/tbe-table-columns.tsx
index 2349db7e..bb86e578 100644
--- a/lib/tbe-tech/table/tbe-table-columns.tsx
+++ b/lib/tbe-tech/table/tbe-table-columns.tsx
@@ -293,7 +293,7 @@ const commentsColumn: ColumnDef<VendorWithTbeFields> = {
   ),
   cell: ({ row }) => {
     const vendor = row.original
-    const commCount = vendor.comments?.length ?? 0
+    const commCount = vendor.comments?.filter(c => c.evaluationId === vendor.tbeId)?.length ?? 0
 
     function handleClick() {
       // setRowAction() 로 type 설정
-- 
cgit v1.2.3

