Skip to content

Commit 324bc49

Browse files
authored
Merge pull request grokability#18080 from Godmartinz/add-null-safe-operator-to-manager
Fixes admin alerts when a location doesnt have a manager
2 parents 63c5177 + 4ab5d97 commit 324bc49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Mail/CheckoutAssetMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function content(): Content
8787
$name = $this->target->assignedto?->display_name;
8888
}
8989
else if($this->target instanceof Location){
90-
$name = $this->target->manager->name;
90+
$name = $this->target->manager?->name;
9191
}
9292

9393
// Check if the item has custom fields associated with it

0 commit comments

Comments
 (0)