Browse Source

fix categoryTree onLoad

ilya_shyian 2 years ago
parent
commit
7a6e70345a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/admin/AdminLayoutPage/index.js

+ 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 = () => {