When creating a node you're setting idx to be the length of the current Vec of children. If you then remove the one before last element and create another one at the end 2 last elements will have the same index.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
When creating a node you're setting idx to be the length of the current Vec of children. If you then remove the one before last element and create another one at the end 2 last elements will have the same index.