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

Cannot read properties of undefined (reading 'inputs') #851

Open
neelphilips opened this issue Apr 11, 2024 · 3 comments
Open

Cannot read properties of undefined (reading 'inputs') #851

neelphilips opened this issue Apr 11, 2024 · 3 comments

Comments

@neelphilips
Copy link

Hello jerosoler,
I hope you are doing well.
Any solution for this error
for example I have node1 and node2 and now i have tried to delete node 1.
so in registerdevents i have removed that node which is node 1 but i have an validation for that lets say due to validation node 1 is not deleteable now i have stored node1 and node2 editor data in another copyobject so now i have again assigned that data to editor. but when i tried to delete that node second time it show me this error in console.
Capture

@jerosoler
Copy link
Owner

It seems that the deleted node does not exist.

Example of prevent delete node:

@neelphilips
Copy link
Author

Thank you for your response.
As you have provide me a code in issue number #831 so that is my code so could you helped me out like where to put this prevent deletion code as i am working in angular.

@jerosoler
Copy link
Owner

Beetween:

editor = new Drawflow(id);
/* CODE HERE */ 
editor.start();

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