Prechádzať zdrojové kódy

fix categoryTree onLoad

ilya_shyian 1 rok pred
rodič
commit
7a6e70345a

+ 2 - 2
src/components/admin/AdminLayoutPage/index.js

@@ -22,8 +22,8 @@ const AdminCategoryTreePageContainer = ({ onLoad, onUnmount }) => {
 };
 
 const CAdminCategoryTreePageContainer = connect(null, {
-    onUnmount: () => actionCatAll(),
-    onLoad: () => actionPromiseClear("catAll"),
+    onUnmount: () => actionPromiseClear("catAll"),
+    onLoad: () => actionCatAll(),
 })(AdminCategoryTreePageContainer);
 
 const AdminLayoutPage = () => {