Merge pull request #1762 from benphelps/fix/issue-1757

Fix: handle service container stopped causes crash in v0.6.24
This commit is contained in:
shamoon 2023-08-02 08:05:26 -07:00 committed by GitHub
commit 2609694dd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ export default function Container({ error = false, children, service }) {
let visibleChildren = childrenArray;
let fields = service?.widget?.fields;
if (typeof service.widget.fields === 'string') fields = JSON.parse(service.widget.fields);
if (typeof 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