mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Handle invalid fields syntax in service labels
This commit is contained in:
parent
b04ed36adb
commit
a2fe1eef7a
@ -291,7 +291,14 @@ export function cleanServiceGroups(groups) {
|
|||||||
enableQueue, // sonarr/radarr
|
enableQueue, // sonarr/radarr
|
||||||
} = cleanedService.widget;
|
} = cleanedService.widget;
|
||||||
|
|
||||||
const fieldsList = typeof fields === 'string' ? JSON.parse(fields) : fields;
|
let fieldsList = fields;
|
||||||
|
if (typeof fields === 'string') {
|
||||||
|
try { JSON.parse(fields) }
|
||||||
|
catch (e) {
|
||||||
|
logger.error("Invalid fields list detected in config for service '%s'", service.name);
|
||||||
|
fieldsList = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cleanedService.widget = {
|
cleanedService.widget = {
|
||||||
type,
|
type,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user