From daabc02e9ae54f216ada77aa826b349f37c3281a Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Thu, 27 Nov 2025 09:43:55 +0000
Subject: (최겸) 구매 입찰 피드백 반영(80%완)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../selectors/procurement-item/procurement-item-selector.tsx | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

(limited to 'components/common/selectors/procurement-item/procurement-item-selector.tsx')

diff --git a/components/common/selectors/procurement-item/procurement-item-selector.tsx b/components/common/selectors/procurement-item/procurement-item-selector.tsx
index 5650959c..f09fea3d 100644
--- a/components/common/selectors/procurement-item/procurement-item-selector.tsx
+++ b/components/common/selectors/procurement-item/procurement-item-selector.tsx
@@ -44,13 +44,9 @@ export function ProcurementItemSelector({
   // 검색 쿼리가 변경될 때마다 검색 실행
   useEffect(() => {
     const performSearch = async () => {
-      if (debouncedSearchQuery.length < 1) {
-        setSearchResults([]);
-        return;
-      }
-
       setIsLoading(true);
       try {
+        // 검색어가 없어도 기본 목록 로드 (기본 50개 등 백엔드 설정에 따름)
         const results = await searchProcurementItemsForSelector(debouncedSearchQuery);
         setSearchResults(results);
       } catch (error) {
@@ -119,11 +115,7 @@ export function ProcurementItemSelector({
               <CommandEmpty>
                 {isLoading ? (
                   <div className="py-6 text-center text-sm text-muted-foreground">
-                    검색 중...
-                  </div>
-                ) : searchQuery.length < 1 ? (
-                  <div className="py-6 text-center text-sm text-muted-foreground">
-                    품목코드 또는 품목명을 입력하세요
+                    로딩 중...
                   </div>
                 ) : (
                   <div className="py-6 text-center text-sm text-muted-foreground">
-- 
cgit v1.2.3

