@jiangood/open-admin 3.1.3 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "test:e2e": "playwright test",
59
59
  "test:e2e:ui": "playwright test --ui"
60
60
  },
61
- "version": "3.1.3",
61
+ "version": "3.1.5",
62
62
  "overrides": {
63
63
  "zod-validation-error": "^4.0.2"
64
64
  }
@@ -57,6 +57,9 @@ export default class AdminLayout extends React.Component {
57
57
  const pathname = PageUtils.currentPathname();
58
58
 
59
59
  TreeUtils.walk(menuTree, (item) => {
60
+ if (item.type === 'divider') {
61
+ return
62
+ }
60
63
  item.icon = <NamedIcon name={item.icon || 'AppstoreOutlined'} style={{fontSize: 12}}/>
61
64
  })
62
65
 
@@ -101,6 +104,9 @@ export default class AdminLayout extends React.Component {
101
104
  const leafRootNodes = [];
102
105
 
103
106
  (menuTree || []).forEach(node => {
107
+ if (node.type === 'divider') {
108
+ return
109
+ }
104
110
  const isDir = node.type === 'directory' || (node.children && node.children.length > 0);
105
111
  if (isDir) {
106
112
  topMenus.push(node);