Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
spitfire305 authored and github-actions[bot] committed Jul 8, 2024
1 parent 208bd35 commit 946db3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Races/MemberController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public function index(Campaign $campaign, Race $race)
->with([
'race', 'race.entity',
'character', 'character.entity', 'character.entity.tags', 'character.entity.tags.entity', 'character.entity.image',
'character.location', 'character.location.entity',
'character.location', 'character.location.entity',
'character.characterRaces'
])
])
->has('character')
->has('character.entity')
->leftJoin('characters as c', 'c.id', 'character_race.character_id')
Expand Down
4 changes: 2 additions & 2 deletions app/Renderers/Layouts/Race/Character.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ public function columns(): array
'races' => [
'label' => Module::plural(config('entities.ids.race'), 'entities.races'),
'class' => self::ONLY_DESKTOP,
'render' => function($model) {
'render' => function ($model) {
$races = [];
foreach ($model->character->characterRaces as $race) {
if (!$race->race || !$race->race->entity) {
continue;
}
$races[] = $this->entityLink($race->race);
}
return implode( ', ', $races);
return implode(', ', $races);
},
'visible' => function () {
return !request()->has('race_id');
Expand Down

0 comments on commit 946db3f

Please sign in to comment.