Skip to content

Commit 2445882

Browse files
committed
Fix variable name in RepliesTable for consistency
1 parent 9a9a124 commit 2445882

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Filament/Resources/Replies/Tables/RepliesTable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function configure(Table $table): Table
3131

3232
TextColumn::make('authorRelation.name')
3333
->label('')
34-
->description(fn(Reply $record): ?string => $record->authorRelation->username),
34+
->description(fn(Reply $reply): ?string => $reply->authorRelation->username),
3535

3636
TextColumn::make('replyAbleRelation.subject')
3737
->label('Thread')
@@ -68,7 +68,7 @@ public static function configure(Table $table): Table
6868
])
6969
->recordActions([
7070
Action::make('view')
71-
->url(fn(Reply $record): string => route('thread', $record->replyAble()->slug()) . '#' . $record->id())
71+
->url(fn(Reply $reply): string => route('thread', $reply->replyAble()->slug()) . '#' . $reply->id())
7272
->openUrlInNewTab()
7373
->icon('heroicon-s-eye'),
7474

0 commit comments

Comments
 (0)