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

Error when data target is null #12

Open
kwokster10 opened this issue Apr 19, 2018 · 0 comments
Open

Error when data target is null #12

kwokster10 opened this issue Apr 19, 2018 · 0 comments

Comments

@kwokster10
Copy link

Tried generating and one of these for an app that contains models from Rails Engines. The html file was generated successfully after adding this patch: voormedia/rails-erd#70 (comment). However, there were json objects in data on L43 that has a target value of null, ex. {"source":400,"target":null,"color":1}.

Error in console:

erd.html:87 Uncaught TypeError: Cannot read property 'label' of undefined
    at SVGLineElement.<anonymous> (erd.html:87)
    at SVGLineElement.<anonymous> (d3.min.js:3)
    at zi.ey [as each] (d3.min.js:6)
    at zi.ry [as attr] (d3.min.js:6)
    at erd.html:87
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

1 participant