Skip to content

Commit

Permalink
Chore: clean up cell render
Browse files Browse the repository at this point in the history
  • Loading branch information
awcodes committed Feb 6, 2024
1 parent 4904c1c commit 5b81a5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/components/table-repeater.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ class="table-repeater-rows-wrapper divide-y divide-gray-950/5 dark:divide-white/
class="table-repeater-row md:divide-x md:divide-gray-950/5 dark:md:divide-white/20"
>
@php($counter = 0)
@foreach($row->getComponents() as $k => $cell)
@if(! $cell instanceof \Filament\Forms\Components\Hidden && ! $cell->isHidden())
@foreach($row->getComponents() as $cell)
@if($cell instanceof \Filament\Forms\Components\Hidden || $cell->isHidden())
{{ $cell }}
@else
<td
@class([
'table-repeater-column',
Expand All @@ -130,8 +132,6 @@ class="table-repeater-row md:divide-x md:divide-gray-950/5 dark:md:divide-white/
>
{{ $cell }}
</td>
@else
{{ $cell }}
@endif
@endforeach

Expand Down

0 comments on commit 5b81a5e

Please sign in to comment.