Skip to content

Commit

Permalink
resolved edge issue in workflow info panel
Browse files Browse the repository at this point in the history
  • Loading branch information
srinijammula committed Dec 19, 2024
1 parent 881c73a commit 0a1f563
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/static/js/gw.workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,19 @@ GW.workflow = {
// when i === edges
edges_body="";
val = JSON.parse(val);
if(val.length === 0){
return;
}
edges_body += `<div class="h4">${i}</div><div>`;
edges_body += `
<table class="table">
<thead>
<tr>`;

const edge = val[0];
if (!edge || !edge.source || !edge.target) {
return;
}
const headers = [];

for (const key of Object.keys(edge.source)) {
Expand Down

0 comments on commit 0a1f563

Please sign in to comment.