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
parent d415f3a3d1
commit 8dd5d01f69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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();
}
}