fixed sku variants

This commit is contained in:
Edward Yang 2022-07-26 18:29:42 +08:00
parent 8025bb9160
commit 46afdc8f09
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class SkuDetail extends JsonResource
{
return [
'id' => $this->id,
'variants' => $this->variants,
'variants' => $this->variants ?: [],
'position' => $this->position,
'images' => array_map(function ($image) {
return [