Frontend issue prevents editing meta (Object detection with bounding boxes)
Describe the bug For each bounding box, label studio provides a text area to add "Selected region meta". Currently this works exactly one time. Further edits are not getting saved because the frontend is not sending the updated meta to the backend. Frontend is still sending the initially provided value to the backend even when the user has edited the value and "Updated".
To Reproduce Steps to reproduce the behavior:
- Create a project of the type "Object Detection with Bounding Boxes"
- Upload an image
- Start a labelling task and draw a bounding box.
- Select the bounding box and in the right sidebar click "Info > [ + ]"
- Put in an inital value in the text area ("apple")
- Submit the task.
- Click on the same bounding box change the meta value to a new one ("ball")
- Click update
- Click on the same bounding box again and check the meta value of the box.
- The value is still the initial value ("apple" )
- Check the network request made when the bbox is being updated. It shows that the value is still "apple" even when the meta was changed.
Expected behavior Edited meta should be properly saved on every "Update".
Video demo
https://github.com/HumanSignal/label-studio/assets/2761491/29cae8f5-d354-4ee7-8403-e6992ee3bec4
Environment (please complete the following information):
- OS: Ubuntu
- Label Studio Version : 1.10.1
Additional context:
- I copied the network request as cURL and modified the value being sent to checked if backend was working properly. And it was. :+1:
- This seems like a frontend fix, and I would have loved to contribute a fix, but my frontend skills are unfortunately severely limited.
Hi @hogepodge can you review this issue
I'm sorry, I no longer work for HumanSignal.
The problem still occurs in version 1.12.1. It was also reported in #5138.
I commented out the code as shown in the image to solve this issue, but I'm not sure if this will cause other bugs, because my front-end skills are weak and I can't fully understand the source code.