File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to ` filament-comments ` will be documented in this file.
4
4
5
+ # 1.5.1 - March 27, 2025
6
+
7
+ - Fixes comment count in action
8
+
5
9
# 1.5.0 - March 27, 2025
6
10
7
11
- Adds Laravel 12 support (Credit [ @CodeWithDennis ] ( https://github.com/CodeWithDennis ) )
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ protected function setUp(): void
22
22
->hiddenLabel ()
23
23
->icon (config ('filament-comments.icons.action ' ))
24
24
->color ('gray ' )
25
- ->badge (fn ( Model $ record ): int => $ record ->filamentComments ()->count ())
25
+ ->badge ($ this -> record ? ->filamentComments()->count ())
26
26
->slideOver ()
27
27
->modalContentFooter (fn (): View => view ('filament-comments::component ' ))
28
28
->modalHeading (__ ('filament-comments::filament-comments.modal.heading ' ))
You can’t perform that action at this time.
0 commit comments