Closed haramkoo closed 2 years ago
I could not replicate this error after trying some things.
Steps made: Created a group for cars, the features in that group have no overlap with other groups. Creating and deleting works fine.
Another bug: When creating a tag, the tag does not appear right away.
Test: Overlap with other groups. after overlapping one image with another group: creating a tag did not cause any bugs. Deleting it is fine too.
This means it has to be caused by removing/adding a feature or group. Renaming the tag is something I'm ignoring.
After refactoring, this error seems to be fixed.
Bug
Background: After playing with tags for a bit, one can start to notice that one cannot delete a tag no matter how many times.
Area to look into: There's a logic error on how tags are created or deleted which is pushing tags with the wrong features and the id doesn't match with its parent feature. Thus, when one tries to delete a tag, they try to find the tag with the same id as its parent feature id but cannot find any.
Possible solution: Look into how the payload is stored before it's pushed into the backend in either createTag or RemoveTag.