Vijayakrishnan 4 лет назад
Родитель
Сommit
b2bc443ca0
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      resources/views/app/patient/canvas-sections/vitals/form.blade.php

+ 3 - 1
resources/views/app/patient/canvas-sections/vitals/form.blade.php

@@ -140,10 +140,12 @@ $formID = rand(0, 100000);
                 computed: {
                     bmi: function () {
                         let result = '';
-                        let h = this.items.heightInches.value, w = this.items.weightPounds.value;
+                        let h = this.items.heightInches, w = this.items.weightPounds;
                         if(!h || !w) {
                             return result;
                         }
+                        h = h.value;
+                        w = w.value;
                         try {
                             h = parseFloat(h);
                             w = parseFloat(w);