add error handling when calling createStep function

This commit is contained in:
isUnknown 2025-03-26 17:03:03 +01:00
parent 636a289d5b
commit 806bc993da

View file

@ -7,7 +7,11 @@ class ProjectPage extends NotificationsPage {
$steps = [];
foreach ($this->children() as $child) {
try {
$steps[] = $this->createStep($child);
} catch (\Throwable $th) {
//throw $th;
}
}
usort($steps, fn($a, $b) => $a['index'] <=> $b['index']);