1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-03-21 12:29:03 +01:00

(bug) create a category result in error

This commit is contained in:
Sylvain 2022-10-04 10:28:37 +02:00
parent 3a8082db97
commit 4cfb1a1253

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
json.extract! product_category, :id, :name, :slug, :parent_id, :position, :products_count
json.extract! product_category, :id, :name, :slug, :parent_id, :position
json.products_count product_category.try(:products_count)