fix linting errors
This commit is contained in:
@@ -44,15 +44,12 @@ export default {
|
|||||||
this.items.forEach(({ title, link, items }) => {
|
this.items.forEach(({ title, link, items }) => {
|
||||||
flattenedItems.push({
|
flattenedItems.push({
|
||||||
title,
|
title,
|
||||||
link
|
link,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (items) {
|
if (items) {
|
||||||
items.forEach(({ title, link }) => {
|
items.forEach(child => {
|
||||||
flattenedItems.push({
|
flattenedItems.push(child)
|
||||||
title,
|
|
||||||
link
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user