Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhoune committed Dec 10, 2023
1 parent b83d828 commit ee486ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/statistics/canvas-overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ function addMissingNode(node, boundingBox) {
return;
} else if (node.label === "unrecognizedIntent") {
bgClass = "bg-warning";
} else {
return;
}
nodeHtml.classList.add(
"node",
Expand Down Expand Up @@ -360,6 +362,10 @@ function addMissingNode(node, boundingBox) {
* @param {*} meanDuration mean duration of the edge
*/
function addMissingEdge(source, target, meanDuration, that) {
// no self loops
if (source === target) {
return;
}
const color = getColorScale(
meanDuration,
that.minDurationValue,
Expand Down

0 comments on commit ee486ce

Please sign in to comment.