Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: GraphLinksModel.linkKeyProperty must not be an empty string #5

Closed
aniot opened this issue Jun 12, 2020 · 1 comment
Closed

Comments

@aniot
Copy link

aniot commented Jun 12, 2020

ReactDiagram uses Model.mergeLinkDataArray() in componentDidMount and componentDidUpdate.
This method pushes users to make key property in linkDataArray, though most of linkDataArray object has no key property.

@jonchardy
Copy link
Contributor

Yes, if you are using a GraphLinksModel, you must provide a linkKeyProperty, as documented in the readme: https://github.com/NorthwoodsSoftware/gojs-react#initdiagraminitpaletteinitoverview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants