Skip to content

Commit

Permalink
📝 fix doc typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zxc0328 committed Jan 3, 2020
1 parent 9099651 commit 29b58d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphin-site/docs/manual/main-concepts/data.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Graphin 的内置 icon 请查阅[内置图标](/zh/docs/manual/icons)
综上,我们可以编写 transform 函数来对 Data 进行转换:

```tsx
const trasform = (data: { nodes: NodeData[]; edges: EdgeData[] }) => {
const transform = (data: { nodes: NodeData[]; edges: EdgeData[] }) => {
const nodes = (nodes: NodeData[]) => {
return nodes.map(node => {
return {
Expand Down

0 comments on commit 29b58d8

Please sign in to comment.