mirror of
https://github.com/BluemediaGER/fancy-gatus.git
synced 2024-11-22 14:45:29 +01:00
Add default group for endpoints without an group
This commit is contained in:
parent
85a84acc42
commit
50f3eff79d
|
@ -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;
|
||||
}, {});
|
||||
|
|
Loading…
Reference in a new issue