소스 검색

Vitals height - don't init ft and in to 0 if empty

Vijayakrishnan 3 년 전
부모
커밋
e9b3ee871d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      resources/views/app/patient/segment-templates/vitals/edit.blade.php

+ 2 - 2
resources/views/app/patient/segment-templates/vitals/edit.blade.php

@@ -166,11 +166,11 @@ $copyTriggerAdded = [];
                                 <div class="d-flex align-items-center bg-white">
                                     <input type="text" class="form-control form-control-sm min-width-unset w-auto-input width-30px border-0 edit"
                                            heightFeetInput
-                                           value="{{feetFromInches($contentData['heightInInches'])}}">
+                                           value="{{feetFromInches($contentData['heightInInches']) ?: ''}}">
                                     <span class="pl-1 pr-2 text-secondary bg-white">ft.</span>
                                     <input type="text" class="form-control form-control-sm min-width-unset w-auto-input width-30px border-0 edit"
                                            heightInchesInput
-                                           value="{{inchesAfterFeetFromInches($contentData['heightInInches'])}}">
+                                           value="{{inchesAfterFeetFromInches($contentData['heightInInches']) ?: ''}}">
                                     <span class="pl-1 text-secondary bg-white">in.</span>
                                     <input type="hidden" data-name="heightInInches" value="{{$contentData['heightInInches']}}">
                                 </div>