Fix: field parsing fails with docker labels (#3101)

This commit is contained in:
shamoon
2024-03-10 22:27:38 -07:00
committed by GitHub
parent c89c4884b6
commit 54db9ac551

View File

@@ -453,7 +453,7 @@ export function cleanServiceGroups(groups) {
let fieldsList = fields;
if (typeof fields === "string") {
try {
JSON.parse(fields);
fieldsList = JSON.parse(fields);
} catch (e) {
logger.error("Invalid fields list detected in config for service '%s'", service.name);
fieldsList = null;