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(