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:
parent
3a8082db97
commit
4cfb1a1253
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user