jqh hace 5 años
padre
commit
d43891b543
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Form/Field/Table.php

+ 1 - 1
src/Form/Field/Table.php

@@ -70,7 +70,7 @@ class Table extends HasMany
 
         return array_values(
             collect($prepare)->reject(function ($item) {
-                return $item[NestedForm::REMOVE_FLAG_NAME] == 1;
+                return ($item[NestedForm::REMOVE_FLAG_NAME] ?? null) == 1;
             })->map(function ($item) {
                 unset($item[NestedForm::REMOVE_FLAG_NAME]);