Skip to content

Commit 4ab5d97

Browse files
committed
add nullsafe operator to location manager
1 parent 63c5177 commit 4ab5d97

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)