From a30a4bbb3c20c2e0b7e01292698d2f613fd0b947 Mon Sep 17 00:00:00 2001 From: merdan Date: Wed, 4 May 2022 15:22:26 +0500 Subject: [PATCH] sarga filters --- packages/Sarga/API/Http/Resources/Catalog/Attribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Sarga/API/Http/Resources/Catalog/Attribute.php b/packages/Sarga/API/Http/Resources/Catalog/Attribute.php index 83ec310f2..6f16ad6b8 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/Attribute.php +++ b/packages/Sarga/API/Http/Resources/Catalog/Attribute.php @@ -18,7 +18,7 @@ class Attribute extends JsonResource 'id' => $this->id, 'code' => $this->code, 'name' => $this->name ?? $this->admin_name, - 'options' => AttributeOption::collection($this->options), + 'options' => AttributeOption::collection($this->options()->take(40)->get()), ]; }