mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(bug) product category order in store
This commit is contained in:
parent
0c19c9856f
commit
0abb3641df
@ -177,7 +177,7 @@ export default class ProductLib {
|
||||
setResources(draft => {
|
||||
return { ...draft, categories: { data: ProductLib.sortCategories(data), ready: true } };
|
||||
});
|
||||
if (typeof onProductCategoryFetched === 'function') onProductCategoryFetched(data);
|
||||
if (typeof onProductCategoryFetched === 'function') onProductCategoryFetched(ProductLib.sortCategories(data));
|
||||
}).catch(error => {
|
||||
onError(error);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user