From 3c73a277ce971984aaa2d6d3a50a50f8de1bae7e Mon Sep 17 00:00:00 2001 From: MahanCh Date: Wed, 14 May 2025 18:36:46 +0330 Subject: [PATCH] fix case history bug --- .../wwwroot/AssetsClient/pages/RollCall/js/CaseHistory.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ServiceHost/wwwroot/AssetsClient/pages/RollCall/js/CaseHistory.js b/ServiceHost/wwwroot/AssetsClient/pages/RollCall/js/CaseHistory.js index dc19866b..910675df 100644 --- a/ServiceHost/wwwroot/AssetsClient/pages/RollCall/js/CaseHistory.js +++ b/ServiceHost/wwwroot/AssetsClient/pages/RollCall/js/CaseHistory.js @@ -351,6 +351,11 @@ function caseHistoryLoadAjax() { if (caseHistoryEmployeeData.dateGr !== null) { + if (caseHistoryEmployeeData.rollCalls.length <= 0) { + hasData = false; + return; + } + $('#dateFaEmployee').show(); var lastPrint = caseHistoryEmployeeData.rollCalls[0];