Fix relation info in kownledge graph UI

This commit is contained in:
yangdx
2025-03-11 15:36:38 +08:00
parent 7fddabb441
commit 30310c2845
4 changed files with 14 additions and 22 deletions

View File

@@ -95,9 +95,9 @@ const refineNodeProperties = (node: RawNodeType): NodeType => {
const neighbour = state.rawGraph.getNode(neighbourId)
if (neighbour) {
relationships.push({
type: isTarget ? 'Target' : 'Source',
type: 'Target',
id: neighbourId,
label: neighbour.labels.join(', ')
label: neighbour.properties['entity_id']
})
}
}