Skip to content

Commit

Permalink
Issue when participation is null musonza#318
Browse files Browse the repository at this point in the history
  • Loading branch information
Saifallak committed May 26, 2024
1 parent 8f03df6 commit 3a11805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function participation()

public function getSenderAttribute()
{
$participantModel = $this->participation->messageable;
$participantModel = $this->participation?->messageable;

if (!isset($participantModel)) {
return null;
Expand Down

0 comments on commit 3a11805

Please sign in to comment.