Skip to content

Commit

Permalink
Fix configured service weight = 0 (gethomepage#2628)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon authored Jan 15, 2024
1 parent 1f2081a commit d61d0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/config/service-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
Expand Down

0 comments on commit d61d0eb

Please sign in to comment.