From 1d51ce3d4715a18319a02bf338cfc3cafa18cf9b Mon Sep 17 00:00:00 2001 From: kangsunlee Date: Fri, 4 Jul 2025 09:54:07 +0900 Subject: [PATCH] =?UTF-8?q?[BO]=20=EC=9E=84=EC=82=B0=EB=AC=BC=20=ED=98=84?= =?UTF-8?q?=ED=99=A9=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/households/tab/forest-product.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/src/main/resources/templates/households/tab/forest-product.html b/admin/src/main/resources/templates/households/tab/forest-product.html index c748f60a..4d26cce5 100644 --- a/admin/src/main/resources/templates/households/tab/forest-product.html +++ b/admin/src/main/resources/templates/households/tab/forest-product.html @@ -82,16 +82,11 @@ tbody.empty(); // TODO(ks) : monthlyStatus 없을 경우 처리 추가... 일단 .. 이렇게 처리 하지만.. 또 다른 방안이 있을지... - if (!response.monthlyStatus || !response.monthlyStatus.status) { + if (!response.monthlyStatus || !response.monthlyStatus.forestStatus) { noDataMonthly(tbody, null, 15); return; } - if (!response.forestProducts || response.forestProducts.length === 0) { - noDataMonthly(tbody, response.monthlyStatus.status, 15); - return; - } - // 임산물 현황 등록 상태 id set f.monthlyInputStatusId.value = response.monthlyStatus.id; // 이번달 등록내용 없음 체크 - NONE : 미등록, NOTHING : 이번달 등록내용 없음 , REGISTERED : 등록완료 @@ -99,6 +94,11 @@ // 이번달 등록내용 없음 에 따라 버튼 hide 처리 showForestProductNoneBtn(); + if (!response.forestProducts || response.forestProducts.length === 0) { + noDataMonthly(tbody, response.monthlyStatus.forestStatus, 15); + return; + } + let tmpl = ''; $(response.forestProducts).each((idx, item) => { tmpl +=