Browse Source

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

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
e9b3ee871d

+ 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>