lighter 1 year ago
parent
commit
9519a20adc

+ 1 - 1
src/views/hospitalization/adverse-event/component/EventPrinter.vue

@@ -130,7 +130,7 @@ const props = defineProps({
 
 const reasonAndProFilter = (arr, input) => {
   let temp = ''
-  if (arr.length === 0) {
+  if (!arr || arr.length === 0) {
     if (!input) {
       return temp
     }