Skip to content

Commit

Permalink
Merge pull request #460 from mboultoureau/main
Browse files Browse the repository at this point in the history
fix: data property is required in node objects
  • Loading branch information
moklick authored Aug 12, 2024
2 parents 8ce6efd + 516eff9 commit b311849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const nodes = [
{
id: '1',
position: { x: 0, y: 0 },
data: { label: 'Hello' },
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const nodes = [
{
id: '1', // required
position: { x: 0, y: 0 }, // required
data: { label: 'Hello' }, // required
},
];
```
Expand Down

0 comments on commit b311849

Please sign in to comment.