Skip to content

Commit 3cc397d

Browse files
Merge pull request #445 from RedisInsight/redisgraph-id-when-no-name-title
[RedisGraph] Use Id when no `name` and `title`
2 parents 730c765 + 5993d20 commit 3cc397d

File tree

1 file changed

+1
-1
lines changed
  • redisinsight/ui/src/packages/redisgraph/src

1 file changed

+1
-1
lines changed

redisinsight/ui/src/packages/redisgraph/src/Graph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default function Graph(props: { graphKey: string, data: any[] }) {
155155
graphData: graphData,
156156
infoPanel: true,
157157
// nodeRadius: 25,
158-
onLabelNode: (node) => node.properties?.name || node.properties?.title || (node.labels ? node.labels[0] : ''),
158+
onLabelNode: (node) => node.properties?.name || node.properties?.title || node.id || (node.labels ? node.labels[0] : ''),
159159
onNodeClick: (nodeSvg, node, event) => {
160160
if (d3.select(nodeSvg).attr('class').indexOf('selected') > 0) {
161161
d3.select(nodeSvg)

0 commit comments

Comments
 (0)