From 02e9df8f2839d852a2196082d535861138aae0d5 Mon Sep 17 00:00:00 2001 From: James Wynn Date: Tue, 24 Jan 2023 09:31:20 -0600 Subject: [PATCH] Parse widget field list if is a string --- src/utils/config/service-helpers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index 2024e10d7..a6eb4bfb2 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -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, };