Skip to content

Commit d543d17

Browse files
committed
Fix edit action binding syntax in card component
Updated the syntax for passing the record ID in the `wire:click` action to correctly handle string interpolation. This resolves potential issues with editing functionality.
1 parent b102ed6 commit d543d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/livewire/card.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
x-sortable-handle
1010
x-sortable-item="{{ $record['id'] }}"
1111
@if($this->editAction() && ($this->editAction)(['record' => $record['id']])->isVisible())
12-
wire:click="mountAction('edit', {record: {{ $record['id'] }}})"
12+
wire:click="mountAction('edit', {record: '{{ $record['id'] }}'})"
1313
@endif
1414
>
1515
<div class="ff-card__content">

0 commit comments

Comments
 (0)