Skip to content

Commit ce7c90e

Browse files
authored
Fix the ordering of updates on the incident page (#243)
1 parent 38e710c commit ce7c90e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Http/Controllers/StatusPage/StatusPageController.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ public function index(): View
4040
public function show(Incident $incident): View
4141
{
4242
return view('cachet::status-page.incident', [
43-
'incident' => $incident,
43+
'incident' => $incident->loadMissing([
44+
'components',
45+
'updates' => fn ($query) => $query->orderByDesc('created_at'),
46+
]),
4447
]);
4548
}
4649
}

0 commit comments

Comments
 (0)