Skip to content

Commit

Permalink
Merge pull request #651 from pinkary-project/fix/morph-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored Sep 21, 2024
2 parents 212cf1b + c6c9f6a commit f98b4f9
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions resources/views/livewire/feed.blade.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
<div>
<section class="mb-12 min-h-screen space-y-10">
@forelse ($questions as $question)
@if($hashtag !== null)
<livewire:questions.show
:questionId="$question->id"
:key="'question-' . $question->id"
:inIndex="true"
/>
@else
<x-thread
:rootId="$question->root_id"
:grandParentId="$question->grand_parent_id"
:parentId="$question->parent_id"
:questionId="$question->id"
:username="$question->username"
/>
@endif
<div wire:key="thread-{{ $question->id }}">
@if($hashtag !== null && $hashtag !== '')
<livewire:questions.show
:questionId="$question->id"
:key="'question-' . $question->id"
:inIndex="true"
/>
@else
<x-thread
:rootId="$question->root_id"
:grandParentId="$question->grand_parent_id"
:parentId="$question->parent_id"
:questionId="$question->id"
:username="$question->username"
/>
@endif
</div>
@empty
<div class="text-center dark:text-slate-400 text-slate-600">There are no questions to show.</div>
@endforelse
Expand Down

0 comments on commit f98b4f9

Please sign in to comment.