浏览代码

updated items

Josh 4 年之前
父节点
当前提交
01399b8449
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      resources/views/app/patient/canvas-sections/allergies/form.blade.php

+ 9 - 0
resources/views/app/patient/canvas-sections/allergies/form.blade.php

@@ -8,6 +8,15 @@ if(!$contentData) {
             ]
         ]
     ];
+
+    if(!isset($contentData['items'])){
+        $contentData['items'] =  [
+            [
+                "title" => "",
+                "detail" => "",
+            ]
+        ];
+    }
 }
 $formID = rand(0, 100000);
 ?>