Update bootstrap/helpers/shared.php

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Andras Bacsai
2026-05-29 15:37:42 +02:00
committed by GitHub
co-authored by coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent d415f3a3d1
commit 8dd5d01f69
+1 -1
View File
@@ -361,7 +361,7 @@ function refreshSession(?Team $team = null): void
}
if (! $team) {
// Fall back to any team the user still belongs to.
$team = User::find(Auth::id())->teams()->first();
$team = User::query()->find(Auth::id())?->teams()->first();
}
}