diff --git a/packages/Sarga/API/Http/Resources/Catalog/AttributeOption.php b/packages/Sarga/API/Http/Resources/Catalog/AttributeOption.php index 7e3d81d8a..f75708fc0 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/AttributeOption.php +++ b/packages/Sarga/API/Http/Resources/Catalog/AttributeOption.php @@ -17,7 +17,7 @@ class AttributeOption extends JsonResource return [ 'id' => $this->id, 'admin_name' => $this->admin_name, - 'label' => $this->label, + 'label' => $this->label ?: $this->admin_name, 'swatch_value' => $this->swatch_value, 'image' => $this->swatch_value_url, 'attribute_id' => $this->attribute_id