diff --git a/pages/categories.vue b/pages/categories.vue index 0e706eb..822317c 100644 --- a/pages/categories.vue +++ b/pages/categories.vue @@ -17,12 +17,12 @@
{{ section.label }}
-
{{ section.label }}
+
{{ section.appNames.slice(0, 25).join(', ') }}, etc...
@@ -61,9 +61,16 @@ export default { // console.log('app.section.slug', app.section.slug) - if (sectionList.hasOwnProperty(app.section.slug)) return + if (sectionList.hasOwnProperty(app.section.slug)) { + sectionList[app.section.slug].appNames.push(app.name) - sectionList[app.section.slug] = app.section + return + } + + sectionList[app.section.slug] = { + ...app.section, + appNames: [ app.name ] + } }) return {