Skip to content

Commit

Permalink
fixed tags bug
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammed-abuodeh committed May 2, 2024
1 parent 9f1af92 commit 1c5e421
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,12 @@ function editByButton(inputSource, linkType) {
// d3.select("text#linkLabel" + selectedNodeLink.id).text(labelText);
// selectedNodeLink.link = labelText;
d3.select(`text#${linkType}` + selectedNodeLink.id).text(textValue);
selectedNodeLink.link = textValue;

if(linkType == "nodePOS") {
selectedNodeLink.pos = textValue;
} else if(linkType === "linkLabel") {
selectedNodeLink.link = textValue;
}
showSelection();
}
}
Expand Down

0 comments on commit 1c5e421

Please sign in to comment.