diff --git a/src/main/resources/static/js/gw.workflow.js b/src/main/resources/static/js/gw.workflow.js index 2a161afd..7b056d0e 100644 --- a/src/main/resources/static/js/gw.workflow.js +++ b/src/main/resources/static/js/gw.workflow.js @@ -140,6 +140,9 @@ GW.workflow = { // when i === edges edges_body=""; val = JSON.parse(val); + if(val.length === 0){ + return; + } edges_body += `
${i}
`; edges_body += ` @@ -147,6 +150,9 @@ GW.workflow = { `; const edge = val[0]; + if (!edge || !edge.source || !edge.target) { + return; + } const headers = []; for (const key of Object.keys(edge.source)) {