mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-17 02:09:49 +00:00
Chore: warn and dont fail for invalid services (#4468)
This commit is contained in:
parent
f64aa50cc0
commit
96431c6085
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,10 @@ function parseServicesToGroups(services) {
|
|||
const serviceGroupServices = [];
|
||||
serviceGroup[name].forEach((entries) => {
|
||||
const entryName = Object.keys(entries)[0];
|
||||
if (!entries[entryName]) {
|
||||
logger.warn(`Error parsing service "${entryName}" from config. Ensure required fields are present.`);
|
||||
return;
|
||||
}
|
||||
if (Array.isArray(entries[entryName])) {
|
||||
groups = groups.concat(parseServicesToGroups([{ [entryName]: entries[entryName] }]));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue