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.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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

diff --git a/lib/tbe-tech/table/tbe-table.tsx b/lib/tbe-tech/table/tbe-table.tsx
index 3d981450..3537f16a 100644
--- a/lib/tbe-tech/table/tbe-table.tsx
+++ b/lib/tbe-tech/table/tbe-table.tsx
@@ -61,7 +61,7 @@ export function AllTbeTable({ promises }: VendorsTableProps) {
         // 새로운 벤더 데이터 추가
         vendorMap.set(vendorId, { 
           ...item, 
-          vendorResponseId: item.id,
+          // vendorResponseId: item.id,
           technicalResponseId: item.id,
           rfqId: item.rfqId
         })
@@ -106,6 +106,7 @@ export function AllTbeTable({ promises }: VendorsTableProps) {
       openCommentSheet(
         rowAction.row.original.vendorId ?? 0,
         rowAction.row.original.rfqId ?? 0,
+        rowAction.row.original.tbeId ?? 0,
       )
     } else if (rowAction.type === "files") {
       openFilesDialog(
@@ -144,10 +145,10 @@ export function AllTbeTable({ promises }: VendorsTableProps) {
   // -----------------------------------------------------------
   // 댓글 시트 열기
   // -----------------------------------------------------------
-  async function openCommentSheet(vendorId: number, rfqId: number) {
+  async function openCommentSheet(vendorId: number, rfqId: number, tbeId: number) {
     setInitialComments([])
     setIsLoadingComments(true)
-    const comments = rowAction?.row.original.comments
+    const comments = rowAction?.row.original.comments?.filter(c => c.evaluationId === tbeId)
     try {
       if (comments && comments.length > 0) {
         const commentWithAttachments: TbeComment[] = await Promise.all(
-- 
cgit v1.2.3

