fix linting errors

This commit is contained in:
Hans Pagel
2020-09-24 18:59:19 +02:00
parent 491f4c2d26
commit 6da9f9cd93

View File

@@ -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
})
}) })
} }
}) })