浏览代码

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