소스 검색

Notes list - check for null mcp and ally pro

Vijayakrishnan Krishnan 4 년 전
부모
커밋
39f1dc7d41
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      resources/views/app/patient/notes.blade.php

+ 2 - 2
resources/views/app/patient/notes.blade.php

@@ -130,10 +130,10 @@
                         </a>
                     </td>
                     <td class="px-2">
-                        {{$note->hcpPro->name_display}}
+                        {{$note->hcpPro ? $note->hcpPro->name_display: '-'}}
                     </td>
                     <td class="px-2">
-                        {{$note->allyPro->name_display}}
+                        {{$note->allyPro ? $note->allyPro->name_display: '-'}}
                     </td>
                 </tr>
             @endforeach