Skip to content

Commit

Permalink
Bugfix: Family chart: lazy loading cousins
Browse files Browse the repository at this point in the history
  • Loading branch information
MGeurts committed Jan 6, 2025
1 parent af4398f commit 01daea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/back/people/chart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<div class="p-2 border basis-2/5">
<div class="grid grid-cols-1 gap-4 xl:grid-cols-2">
@if ($person->father)
@foreach ($person->father->siblings() as $index => $sibling)
@foreach ($person->father->siblings(true) as $index => $sibling)
<div>
{{ $index + 1 }}.
<x-link href="/people/{{ $sibling->id }}/chart" @class([
Expand Down Expand Up @@ -121,7 +121,7 @@
<div class="p-2 border basis-2/5">
<div class="grid grid-cols-1 gap-4 xl:grid-cols-2">
@if ($person->mother)
@foreach ($person->mother->siblings() as $index => $sibling)
@foreach ($person->mother->siblings(true) as $index => $sibling)
<div>
{{ $index + 1 }}.
<x-link href="/people/{{ $sibling->id }}/chart" @class([
Expand Down

0 comments on commit 01daea4

Please sign in to comment.