From b755f8f017385552491b212df4e31a449abefd47 Mon Sep 17 00:00:00 2001 From: kjs Date: Fri, 12 Dec 2025 17:08:36 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=84=ED=95=A0=ED=8C=A8=EB=84=90=20?= =?UTF-8?q?=EC=86=8C=EC=8A=A4=EC=BB=AC=EB=9F=BC=20=EC=B6=94=EB=A1=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../split-panel-layout/SplitPanelLayoutComponent.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/lib/registry/components/split-panel-layout/SplitPanelLayoutComponent.tsx b/frontend/lib/registry/components/split-panel-layout/SplitPanelLayoutComponent.tsx index ac5cc8d1..2bfdda74 100644 --- a/frontend/lib/registry/components/split-panel-layout/SplitPanelLayoutComponent.tsx +++ b/frontend/lib/registry/components/split-panel-layout/SplitPanelLayoutComponent.tsx @@ -715,8 +715,12 @@ export const SplitPanelLayoutComponent: React.FC const colName = typeof col === "string" ? col : col.name || col.columnName; if (colName && colName.includes(".")) { const [refTable, refColumn] = colName.split("."); - // 소스 컬럼 추론 (item_info → item_code) - const inferredSourceColumn = refTable.replace("_info", "_code").replace("_mng", "_id"); + // 소스 컬럼 추론 (item_info → item_code 또는 warehouse_info → warehouse_id) + // 기본: _info → _code, 백업: _info → _id + const primarySourceColumn = refTable.replace("_info", "_code").replace("_mng", "_id"); + const secondarySourceColumn = refTable.replace("_info", "_id").replace("_mng", "_id"); + // 실제 존재하는 소스 컬럼은 백엔드에서 결정 (프론트엔드는 두 패턴 모두 전달) + const inferredSourceColumn = primarySourceColumn; // 이미 추가된 조인인지 확인 (동일 테이블, 동일 소스컬럼) const existingJoin = additionalJoinColumns.find(