Explorar o código

bug: fix authorities of root route were not be injected in Authorized component (#2861)

Mutrix %!s(int64=7) %!d(string=hai) anos
pai
achega
f3ec5fa9a6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/layouts/BasicLayout.js

+ 2 - 2
src/layouts/BasicLayout.js

@@ -143,9 +143,9 @@ class BasicLayout extends React.PureComponent {
 
   getMenuData() {
     const {
-      route: { routes },
+      route: { routes, path, authority },
     } = this.props;
-    return memoizeOneFormatter(routes);
+    return memoizeOneFormatter(routes, path, authority);
   }
 
   /**