Skip to content

Commit

Permalink
fix: correctly display airlines count on terminal page
Browse files Browse the repository at this point in the history
  • Loading branch information
CalumTowers committed Aug 14, 2024
1 parent 1b251e6 commit d2878ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Filament/Resources/TerminalResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public static function table(Table $table): Table
->sortable(),
Tables\Columns\TextColumn::make('description')
->label(self::translateTablePath('columns.description')),
Tables\Columns\TextColumn::make('airlines')
Tables\Columns\TextColumn::make('airlines_count')
->label(self::translateTablePath('columns.airlines'))
->formatStateUsing(fn (Collection $state) => $state->count()),
->counts('airlines'),
])
->actions([
Tables\Actions\ViewAction::make(),
Expand Down

0 comments on commit d2878ab

Please sign in to comment.