From e4f6272a7e4d8a8f29d54f7752722c46615a1146 Mon Sep 17 00:00:00 2001 From: merdan Date: Sun, 13 Nov 2022 14:47:49 +0500 Subject: [PATCH] invoice fx --- packages/Sarga/API/Http/Resources/Catalog/AttributeOption.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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