parent
f7c3d76d37
commit
e58d40ab83
|
|
@ -55,7 +55,6 @@
|
|||
const deepMenus = (menus) => {
|
||||
const arr = []
|
||||
menus?.forEach((menu) => {
|
||||
if (!menu?.children) return
|
||||
if (menu.children && menu.children.length > 0) {
|
||||
arr.push(...deepMenus(menu.children))
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue