Merge pull request #871 from jameswynn/fix-discovered-widget-fields-parsing

Discovered services need widget field list parsed
pull/879/head
shamoon 2 years ago committed by GitHub
commit 555f9f7b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -218,9 +218,11 @@ export function cleanServiceGroups(groups) {
wan // opnsense widget wan // opnsense widget
} = cleanedService.widget; } = cleanedService.widget;
const fieldsList = typeof fields === 'string' ? JSON.parse(fields) : fields;
cleanedService.widget = { cleanedService.widget = {
type, type,
fields: fields || null, fields: fieldsList || null,
service_name: service.name, service_name: service.name,
service_group: serviceGroup.name, service_group: serviceGroup.name,
}; };

Loading…
Cancel
Save