Skip to content

Commit e698e71

Browse files
authored
Merge pull request #18100 from marcusmoore/fixes/20318-license-seat-display-name
Added null safe operator in case of missing license
2 parents d064a55 + 1f499e0 commit e698e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/LicenseSeat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function name(): Attribute
7676
protected function displayName(): Attribute
7777
{
7878
return Attribute:: make(
79-
get: fn(mixed $value) => $this->license->name,
79+
get: fn(mixed $value) => $this->license?->name,
8080
);
8181
}
8282

0 commit comments

Comments
 (0)