Skip to content

Commit d2ca98d

Browse files
Fix bug caused by hidden fields #5
1 parent 4646161 commit d2ca98d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Traits/TLAPAdminTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ public function applyDataFilter(array $data, array $columnsStructure): array
232232

233233
foreach($data as $dataKey => $dataValue){
234234
foreach($columnStructure as $columnKey => $columnValue){
235+
if(!isset($data[$dataKey][$columnKey])){
236+
continue;
237+
}
235238
$filterName = config('tlap.datatableFilter.type.' . $columnValue['type']);
236239
if (class_exists($filterName)) {
237240
$filter = app($filterName);

0 commit comments

Comments
 (0)