mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 14:38:47 +00:00
Parse widget field list if is a string
This commit is contained in:
parent
5ecb9466ae
commit
02e9df8f28
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue