Skip to content

Commit 6e7a6f9

Browse files
committed
Fix extraItemActions
1 parent cf67977 commit 6e7a6f9

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

resources/views/components/table-repeater.blade.php

+6-7
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@
2626
2727
$statePath = $getStatePath();
2828
29-
foreach ($containers as $uuid => $row) {
30-
$visibleExtraItemActions = array_filter(
31-
$extraItemActions,
32-
fn (Action $action): bool => $action(['item' => $uuid])->isVisible(),
33-
);
34-
}
35-
3629
foreach ($extraActions as $extraAction) {
3730
$visibleExtraActions = array_filter(
3831
$extraActions,
@@ -107,6 +100,12 @@ class="table-repeater-rows-wrapper divide-y divide-gray-950/5 dark:divide-white/
107100
>
108101
@if (count($containers))
109102
@foreach ($containers as $uuid => $row)
103+
@php
104+
$visibleExtraItemActions = array_filter(
105+
$extraItemActions,
106+
fn (Action $action): bool => $action(['item' => $uuid])->isVisible(),
107+
);
108+
@endphp
110109
<tr
111110
wire:key="{{ $this->getId() }}.{{ $row->getStatePath() }}.{{ $field::class }}.item"
112111
x-sortable-item="{{ $uuid }}"

0 commit comments

Comments
 (0)