From 50f3eff79d436588ad38544ae299fb2ad2a9508e Mon Sep 17 00:00:00 2001 From: BluemediaGER Date: Sun, 16 Jan 2022 01:23:22 +0100 Subject: [PATCH] Add default group for endpoints without an group --- src/App.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.vue b/src/App.vue index 212ea94..829b2a3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -48,6 +48,9 @@ export default { groups() { // Group let groups = this.apiData.reduce(function(rv, x) { + if (!x.group) { + x.group = "Ungrouped"; + } (rv[x["group"]] = rv[x["group"]] || []).push(x); return rv; }, {});