We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 083bec1 + 0da7069 commit 989b8b7Copy full SHA for 989b8b7
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