Support per-service stats control
This commit is contained in:
1 parent
1a374dec3c
commit
7e012993d8
2 files changed
+7
-5
No files matched your search
@@ -236,6 +236,7 @@ export function cleanServiceGroups(groups) {
|
||||
name: serviceGroup.name,
|
||||
services: serviceGroup.services.map((service) => {
|
||||
const cleanedService = { ...service };
|
||||
if (cleanedService.showStats !== undefined) cleanedService.showStats = JSON.parse(cleanedService.showStats);
|
||||
if (typeof service.weight === 'string') {
|
||||
const weight = parseInt(service.weight, 10);
|
||||
if (Number.isNaN(weight)) {
|
||||
|
||||
Reference in new issue
Block a user