Skip to content

Commit 616dc43

Browse files
committed
🔖 v0.2.2
1 parent 724171c commit 616dc43

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-kgraph",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"license": "MIT",
55
"homepage": "https://github.com/unirakun/react-kgraph",
66
"repository": "github:unirakun/react-kgraph",

pkg/dist-src/Graph.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const Graph = (props) => {
105105
})),
106106
React.createElement("g", { stroke: "#fff", strokeWidth: 1 }, layout.nodes.map((node) => {
107107
const { id, group, x, y, label, Component, color } = node;
108-
return (React.createElement("g", { transform: `translate(${x * size} ${y * size})` },
108+
return (React.createElement("g", { key: id, transform: `translate(${x * size} ${y * size})` },
109109
React.createElement(Node, { key: id, id: id, group: group, label: label, color: color, Component: Component, size: size, hover: hoverNode === id, hidden: hoverNode !== id && hiddenNodes.includes(id), onClick: innerOnNodeClick, onMouseEnter: onOverNode, onMouseLeave: onLeaveNode, onDrag: noDrag ? undefined : onDrag, onStart: noDrag ? undefined : onStart, onEnd: noDrag ? undefined : onEnd })));
110110
})))));
111111
};

pkg/dist-web/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/dist-web/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-kgraph",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"license": "MIT",
55
"files": [
66
"dist-*/",

0 commit comments

Comments
 (0)