Skip to content

Commit

Permalink
Bug -> fix bug title
Browse files Browse the repository at this point in the history
  • Loading branch information
soheilkhaledabdi committed Feb 29, 2024
1 parent 198bdb0 commit 3d05f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/api/v1/OrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ protected function mapProducts($products)
{
return $products->map(function ($product) {
return [
'title' => $product->product->title,
'image' => $product->product->image
'title' => $product?->product?->title,
'image' => $product?->product?->image
];
});
}
Expand Down

0 comments on commit 3d05f04

Please sign in to comment.