|
|
@ -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,
|
|
|
|
};
|
|
|
|
};
|
|
|
|