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