Skip to content

Commit 0f6e53b

Browse files
committed
Fix Nullable exception
1 parent 7f7f1d7 commit 0f6e53b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/Twig/Components/DashboardImportance.php

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public function getMaxImportance(): array
3636
$maxImportance = Importance::min();
3737
$maxNotifier = null;
3838
foreach ($projects as [$importance, $notifier]) {
39+
if (!$importance) {
40+
continue;
41+
}
3942
if ($importance->isHigherThan($maxImportance)) {
4043
$maxImportance = $importance;
4144
$maxNotifier = $notifier;

0 commit comments

Comments
 (0)