lighter пре 1 година
родитељ
комит
9519a20adc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/views/hospitalization/adverse-event/component/EventPrinter.vue

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