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
} = cleanedService.widget;
const fieldsList = typeof fields === 'string' ? JSON.parse(fields) : fields;
cleanedService.widget = {
type,
fields: fields || null,
fields: fieldsList || null,
service_name: service.name,
service_group: serviceGroup.name,
};

Loading…
Cancel
Save