Selaa lähdekoodia

dirty fix on window.noteReasons

= 3 vuotta sitten
vanhempi
commit
4185b3c089
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      resources/views/app/patient/note/_create-claim.blade.php

+ 2 - 2
resources/views/app/patient/note/_create-claim.blade.php

@@ -136,7 +136,7 @@
                     {
                         cpt: '',
                         dateOfService: '{{$note->created_at}}',
-                        icds: JSON.parse(JSON.stringify(window.noteReasons)),
+                        icds: JSON.parse(JSON.stringify(window.noteReasons?window.noteReasons:[])),
                         numberOfUnits: 1
                     }
                 ]
@@ -147,7 +147,7 @@
                 this.payload.lines.push({
                     cpt: '',
                     dateOfService: '{{date_format($note->created_at, 'Y-m-d')}}',
-                    icds: JSON.parse(JSON.stringify(window.noteReasons)),
+                    icds: JSON.parse(JSON.stringify(window.noteReasons?window.noteReasons:[])),
                     numberOfUnits: 1
                 });
                 Vue.nextTick(() => {