From 3a76ebfa18df15096ac21d10bf46f85b4d1e45e2 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Mon, 1 Dec 2025 19:13:02 +0900
Subject: (대표님) VDI 작업사항 반영
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/vendor-data-plant/vendor-data-container.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'components/vendor-data-plant/vendor-data-container.tsx')

diff --git a/components/vendor-data-plant/vendor-data-container.tsx b/components/vendor-data-plant/vendor-data-container.tsx
index 7ce831df..bf4c30f1 100644
--- a/components/vendor-data-plant/vendor-data-container.tsx
+++ b/components/vendor-data-plant/vendor-data-container.tsx
@@ -77,6 +77,7 @@ export function VendorDataContainer({
 
   // 상태 관리
   const [selectedProjectId, setSelectedProjectId] = React.useState(projects[0]?.projectId || 0)
+  const [selectedProjectCode, setSelectedProjectCode] = React.useState(projects[0]?.projectCode || "")
   const [isCollapsed, setIsCollapsed] = React.useState(defaultCollapsed)
   const [selectedPackageCode, setSelectedPackageCode] = React.useState<string | null>(null)
   const [selectedFormCode, setSelectedFormCode] = React.useState<string | null>(null)
@@ -94,6 +95,7 @@ export function VendorDataContainer({
       const project = projects.find(p => p.projectCode === projectCode)
       if (project) {
         setSelectedProjectId(project.projectId)
+        setSelectedProjectCode(project.projectCode)
         setSelectedPackageCode(packageCode)
       }
     }
@@ -207,6 +209,7 @@ export function VendorDataContainer({
           <Sidebar
             isCollapsed={isCollapsed}
             selectedPackageCode={selectedPackageCode}
+            projectCode={selectedProjectCode}
             selectedFormCode={selectedFormCode}
             currentMode={currentMode}
             onMasterTagListClick={handleMasterTagListClick}
-- 
cgit v1.2.3

