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