antonioru / beautiful-react-diagrams

💎 A collection of lightweight React components and hooks to build diagrams with ease 💎
https://antonioru.github.io/beautiful-react-diagrams/
MIT License
2.67k stars 175 forks source link

Fixed breaking code when removing node #159

Open devendra-gh opened 3 years ago

devendra-gh commented 3 years ago

When Adding Node dynamically and remove random order then getting issue like undefined

Description

When Adding Node dynamically and remove random order then getting issue like undefined bcz of null check.

Related Issue

https://github.com/beautifulinteractions/beautiful-react-diagrams/issues/157

How Has This Been Tested?

https://github.com/devendra-gh/poc-bot-builder

RenatoParker commented 2 years ago

Hi @antonioru, will you merge this fix?