Skip to content

Commit

Permalink
Fix the ordering of updates on the incident page (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk authored Feb 14, 2025
1 parent 38e710c commit ce7c90e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Http/Controllers/StatusPage/StatusPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ public function index(): View
public function show(Incident $incident): View
{
return view('cachet::status-page.incident', [
'incident' => $incident,
'incident' => $incident->loadMissing([
'components',
'updates' => fn ($query) => $query->orderByDesc('created_at'),
]),
]);
}
}

0 comments on commit ce7c90e

Please sign in to comment.