Skip to content

Commit 0b39c16

Browse files
committed
Fix key in livewire tree item component
1 parent 56d7ba5 commit 0b39c16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/views/filament/resources/menu-resource/pages/manage-menu-items.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<x-filament-panels::page>
2-
<div
2+
<div
33
x-data="menuItemsManager({
44
maxDepth: {{ $this->getMaxDepth() }},
55
menuId: {{ $this->record->id }}
@@ -30,7 +30,7 @@ class="space-y-6"
3030
@livewire('filament-flexible-content-block-pages::menu-tree-item', [
3131
'item' => $item,
3232
'maxDepth' => $this->getMaxDepth()
33-
], key: "item-{$item->id}-{$refreshKey}")
33+
], key("item-{$item->id}-{$refreshKey}"))
3434
@endforeach
3535
</div>
3636
@endif
@@ -106,4 +106,4 @@ function menuItemsManager(config) {
106106
}
107107
</script>
108108
@endpush
109-
</x-filament-panels::page>
109+
</x-filament-panels::page>

0 commit comments

Comments
 (0)