We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7533d7d commit f50443cCopy full SHA for f50443c
CHANGELOG.md
@@ -2,6 +2,10 @@
2
3
All notable changes to `filament-comments` will be documented in this file.
4
5
+# 1.5.1 - March 27, 2025
6
+
7
+- Fixes comment count in action
8
9
# 1.5.0 - March 27, 2025
10
11
- Adds Laravel 12 support (Credit [@CodeWithDennis](https://github.com/CodeWithDennis))
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(fn (Model $record): int => $record->filamentComments()->count())
+ ->badge($this->record?->filamentComments()->count())
26
->slideOver()
27
->modalContentFooter(fn (): View => view('filament-comments::component'))
28
->modalHeading(__('filament-comments::filament-comments.modal.heading'))
0 commit comments