Added error logging for duplicate edges in rawGraph.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -8,7 +8,7 @@
|
|||||||
<link rel="icon" type="image/svg+xml" href="logo.png" />
|
<link rel="icon" type="image/svg+xml" href="logo.png" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Lightrag</title>
|
<title>Lightrag</title>
|
||||||
<script type="module" crossorigin src="./assets/index-DSwGiLVk.js"></script>
|
<script type="module" crossorigin src="./assets/index-D6vUNmAf.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="./assets/index-mPRIIErN.css">
|
<link rel="stylesheet" crossorigin href="./assets/index-mPRIIErN.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@@ -595,6 +595,8 @@ const useLightrangeGraph = () => {
|
|||||||
rawGraph.edgeIdMap[newEdge.id] = rawGraph.edges.length - 1;
|
rawGraph.edgeIdMap[newEdge.id] = rawGraph.edges.length - 1;
|
||||||
// Update dynamic edge map
|
// Update dynamic edge map
|
||||||
rawGraph.edgeDynamicIdMap[newEdge.dynamicId] = rawGraph.edges.length - 1;
|
rawGraph.edgeDynamicIdMap[newEdge.dynamicId] = rawGraph.edges.length - 1;
|
||||||
|
} else {
|
||||||
|
console.error('Edge already exists in rawGraph:', newEdge.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user