mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-09 18:02:08 +08:00
Fix: fix default configured service weight = 0 (#6151)
This commit is contained in:
@@ -35,7 +35,7 @@ function parseServicesToGroups(services) {
|
|||||||
serviceGroupServices.push({
|
serviceGroupServices.push({
|
||||||
name: entryName,
|
name: entryName,
|
||||||
...entries[entryName],
|
...entries[entryName],
|
||||||
weight: entries[entryName].weight || serviceGroupServices.length * 100, // default weight
|
weight: entries[entryName].weight ?? serviceGroupServices.length * 100, // default weight
|
||||||
type: "service",
|
type: "service",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user