From 7be8caf3f7e24d077b37f7c7bb3e85ac1626b633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Mon, 26 Jan 2026 16:36:36 +0900 Subject: [PATCH] =?UTF-8?q?fix(WEB):=20LocationDetailPanel=20=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EB=B8=94=20key=20prop=20=EB=88=84=EB=9D=BD=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BOM 아이템 렌더링 시 id가 없을 경우 index 기반 fallback key 사용 - body, guide-rail, case, bottom, motor, accessory 탭 모두 적용 --- src/components/quotes/LocationDetailPanel.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/quotes/LocationDetailPanel.tsx b/src/components/quotes/LocationDetailPanel.tsx index 5920adac..a8debcac 100644 --- a/src/components/quotes/LocationDetailPanel.tsx +++ b/src/components/quotes/LocationDetailPanel.tsx @@ -376,8 +376,8 @@ export function LocationDetailPanel({ - {bomItemsByTab.body.map((item: any) => ( - + {bomItemsByTab.body.map((item: any, index: number) => ( + {item.item_name} {item.manufacture_size || "-"} @@ -434,8 +434,8 @@ export function LocationDetailPanel({ - {bomItemsByTab[tabValue]?.map((item: any) => ( - + {bomItemsByTab[tabValue]?.map((item: any, index: number) => ( + {item.item_name} {item.material || "-"} {item.spec || "-"} @@ -504,8 +504,8 @@ export function LocationDetailPanel({ - {bomItemsByTab.motor?.map((item: any) => ( - + {bomItemsByTab.motor?.map((item: any, index: number) => ( + {item.item_name} {item.type || "-"} {item.spec || "-"} @@ -561,8 +561,8 @@ export function LocationDetailPanel({ - {bomItemsByTab.accessory?.map((item: any) => ( - + {bomItemsByTab.accessory?.map((item: any, index: number) => ( + {item.item_name} {item.spec || "-"}