Handled Null Case
This commit is contained in:
parent
0f6d3d3253
commit
de0c76eaa1
|
|
@ -84,7 +84,9 @@ class ShopController extends Controller
|
|||
return $this->velocityHelper->formatProduct($product);
|
||||
}
|
||||
}
|
||||
}),
|
||||
})->reject(function ($product) {
|
||||
return is_null($product);
|
||||
})->values(),
|
||||
];
|
||||
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue