fixed sku variants
This commit is contained in:
parent
8025bb9160
commit
46afdc8f09
|
|
@ -19,7 +19,7 @@ class SkuDetail extends JsonResource
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'variants' => $this->variants,
|
'variants' => $this->variants ?: [],
|
||||||
'position' => $this->position,
|
'position' => $this->position,
|
||||||
'images' => array_map(function ($image) {
|
'images' => array_map(function ($image) {
|
||||||
return [
|
return [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue