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

Adding clusterAttribute causes tick error #197

Open
candcconsulting opened this issue Mar 5, 2024 · 5 comments
Open

Adding clusterAttribute causes tick error #197

candcconsulting opened this issue Mar 5, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@candcconsulting
Copy link

Describe the bug

With the following definition

<GraphCanvas nodes={displayNodes} edges={displayEdges} 
          // clusterAttribute="schema"
          edgeInterpolation="curved"
          edgeLabelPosition="above"
          labelType="edges"
          ref={graphRef}
          onCanvasClick={onCanvasClick} 
          onNodeClick={onNodeClick}
          
          sizingType={displayNodes.length > 0 ? "pagerank" : undefined}
          draggable={true}
/>

if clusterAttribute is enabled then the following error is generated

ERROR
Cannot read properties of undefined (reading 'tick')
TypeError: Cannot read properties of undefined (reading 'tick')
    at force (http://localhost:3000/static/js/bundle.js:508477:21)
    at http://localhost:3000/static/js/bundle.js:500073:9
    at Map.forEach (<anonymous>)
    at Object.tick (http://localhost:3000/static/js/bundle.js:500072:14)
    at Object.step (http://localhost:3000/static/js/bundle.js:508837:11)
    at run (http://localhost:3000/static/js/bundle.js:508425:25)
    at http://localhost:3000/static/js/bundle.js:508431:5
    at new Promise (<anonymous>)
    at tick (http://localhost:3000/static/js/bundle.js:508421:10)
    at http://localhost:3000/static/js/bundle.js:509950:13
the clusters are shown (takes some time) when the error is closed and the error is not redisplayed unless the graph is closed and re-opened

Steps to Reproduce the Bug or Issue

Create a node dataset with the cluster information in data : {schema : "123"}
turn on clusterAttribute

Expected behavior

Just expect the nodes to be displayed

Screenshots or Videos

No response

Platform

"reagraph": "^4.15.18",
"@types/react": "^17.0.9",
"@types/react-dom": "^17.0.9",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Windows 11
Chrome Version 122.0.6261.95 (Official Build) (64-bit) (although same issue in Edge)
Node 18.19.0

Your Example Website or App

No response

Additional context

No response

@amcdnl
Copy link
Member

amcdnl commented Mar 5, 2024

Can you share a example? Looks like all the demos work fine.

@candcconsulting
Copy link
Author

What do you want the example of ... the data .. or ?

@candcconsulting
Copy link
Author

Hi @amcdnl I added you to my sandbox with the data, but the sandbox is complaining about import
Let me know if you want me to recreate a smaller repo ... somewhere.

@amcdnl amcdnl added the bug Something isn't working label Apr 10, 2024
@amcdnl
Copy link
Member

amcdnl commented Apr 10, 2024

Is this still an issue?

@candcconsulting
Copy link
Author

I removed the feature from my app .. .so it may still be a problem, but I am not using the feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants