Quellcode durchsuchen

[진료관리 - 상세] 코드 정리.

(cherry picked from commit f11ee6a63538fa7962aa8af92a18aa0fe9e83a7f)
sjpark vor 4 Jahren
Ursprung
Commit
53b0c7f50c
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      src/main/webapp/WEB-INF/jsp/clinic/info.jsp

+ 3 - 3
src/main/webapp/WEB-INF/jsp/clinic/info.jsp

@@ -423,9 +423,9 @@ function drawBPChart(data) {
 	data.forEach(function(d) {
 		var t = chartDateFormatter(d.recordedDate);
 		xDatas.push(t);
-		y1Datas.push(d.phrValue === "" ? Number.NaN : d.phrValue);
-    y2Datas.push(d.phrValue2 === "" ? Number.NaN : d.phrValue2);
-    y3Datas.push(d.phrValueExtra === "" ? Number.NaN : d.phrValueExtra);
+		y1Datas.push(d.phrValue !== null && d.phrValue !== "" ? d.phrValue : Number.NaN);
+    y2Datas.push(d.phrValue2 !== null && d.phrValue2 !== "" ? d.phrValue2 : Number.NaN);
+    y3Datas.push(d.phrValueExtra !== null && d.phrValueExtra !== "" ? d.phrValueExtra : Number.NaN);
     if (d.phrValue !== null && d.phrValue !== "")  ymin = Math.min(ymin, d.phrValue);
     if (d.phrValue2 !== null && d.phrValue2 !== "")  ymin = Math.min(ymin, d.phrValue2);
     if (d.phrValueExtra !== null && d.phrValueExtra !== "")  ymin = Math.min(ymin, d.phrValueExtra);