Fix configured service weight = 0 (#2628)

pull/2650/head
shamoon 3 months ago committed by GitHub
parent 1f2081af5d
commit d61d0eb88f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -38,7 +38,7 @@ export async function servicesFromConfig() {
// add default weight to services based on their position in the configuration
servicesArray.forEach((group, groupIndex) => {
group.services.forEach((service, serviceIndex) => {
if (!service.weight) {
if (service.weight === undefined) {
servicesArray[groupIndex].services[serviceIndex].weight = (serviceIndex + 1) * 100;
}
});

Loading…
Cancel
Save