We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79aeb1c commit 0da7069Copy full SHA for 0da7069
src/Actions/CommentsAction.php
@@ -22,7 +22,7 @@ protected function setUp(): void
22
->hiddenLabel()
23
->icon(config('filament-comments.icons.action'))
24
->color('gray')
25
- ->badge($this->record->filamentComments()->count())
+ ->badge(fn (Model $record): int => $record->filamentComments()->count())
26
->slideOver()
27
->modalContentFooter(fn (): View => view('filament-comments::component'))
28
->modalHeading(__('filament-comments::filament-comments.modal.heading'))
0 commit comments