Merge pull request #1706 from benphelps/fix/issue-1702

Fix: error when fields specified via labels in 0.6.23
pull/1714/head
shamoon 1 year ago committed by GitHub
commit 0adf5e69e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,7 +18,8 @@ export default function Container({ error = false, children, service }) {
const childrenArray = Array.isArray(children) ? children : [children];
let visibleChildren = childrenArray;
const fields = service?.widget?.fields;
let fields = service?.widget?.fields;
if (typeof service.widget.fields === 'string') fields = JSON.parse(service.widget.fields);
const type = service?.widget?.type;
if (fields && type) {
// if the field contains a "." then it most likely contains a common loc value

Loading…
Cancel
Save