Update bootstrap/helpers/shared.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
d415f3a3d1
commit
8dd5d01f69
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ function refreshSession(?Team $team = null): void
|
||||||
}
|
}
|
||||||
if (! $team) {
|
if (! $team) {
|
||||||
// Fall back to any team the user still belongs to.
|
// 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue