Skip to content

Commit

Permalink
fix point issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Nov 7, 2024
1 parent a255acc commit 9d27c88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Http/Resources/ContributionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public function toArray(Request $request): array
(new Point)->getMorphClass() => $this->model,
(new Problem)->getMorphClass() => $this->model->point,
};
if (!$point) {
return [];
}

return [
'id' => $point->id,
Expand Down

0 comments on commit 9d27c88

Please sign in to comment.