You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If no links or nodes are provided the error which is shown below in the screenshots is thrown.
In version 9.0.1, at least one node and one link are required. However, as we use the graph to establish relationships between nodes, providing initial links isn’t feasible, leading to an endless loop that crashes the Angular app. It would be helpful if the case of empty links or nodes were handled as it was prior to the 9.0.0 release.
To Reproduce
Steps to reproduce the behavior:
Create a graph (e.g. a simple demo graph from the documentation) and provide an empty array of nodes and links
Open the graph
see the error above
Expected behavior
Even if an empty array of links and nodes (or only 1 node) are provided the graph should still render.
Screenshots
If applicable, add screenshots to help explain your problem.
ngx-graph version
9.0.1
The text was updated successfully, but these errors were encountered:
Describe the bug
If no links or nodes are provided the error which is shown below in the screenshots is thrown.
In version 9.0.1, at least one node and one link are required. However, as we use the graph to establish relationships between nodes, providing initial links isn’t feasible, leading to an endless loop that crashes the Angular app. It would be helpful if the case of empty links or nodes were handled as it was prior to the 9.0.0 release.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Even if an empty array of links and nodes (or only 1 node) are provided the graph should still render.
Screenshots
If applicable, add screenshots to help explain your problem.
ngx-graph version
9.0.1
The text was updated successfully, but these errors were encountered: