Skip to content

Commit

Permalink
Update TableFilterScope.php
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkortas committed Apr 25, 2023
1 parent 748bcca commit 9d42afd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Scopes/TableFilterScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ private function getColumns($indexable) {
$columns = [];

foreach($indexable ?? [] as $key => $value) {
if(is_numeric($key) && !empty($value['key'])) {
$key = $value['key'] ;
}

if(is_array($value)) {
foreach ($value ?? [] as $subKey => $subValue) {
$columns[$subKey] = $subValue;
Expand Down

0 comments on commit 9d42afd

Please sign in to comment.