3
0
mirror of https://github.com/snipe/snipe-it.git synced 2025-10-29 19:31:41 +00:00

Add null safe operator in case of missing license

This commit is contained in:
Marcus Moore 2025-10-27 10:47:55 -07:00
parent 32a2eed5ec
commit 1f499e0d44
No known key found for this signature in database

View File

@ -76,7 +76,7 @@ class LicenseSeat extends SnipeModel implements ICompanyableChild
protected function displayName(): Attribute
{
return Attribute:: make(
get: fn(mixed $value) => $this->license->name,
get: fn(mixed $value) => $this->license?->name,
);
}