HumanSignal / HumanSignal/label-studio

Pre-select choices isn't selected only when using "Label All Tasks"

Open
#6,994 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**
When using dynamic choices were some are pre-selected they aren't selected when using "Label All Tasks" button but *are* selected when viewing them one by one.

**To Reproduce**
Steps to reproduce the behavior:
Project Template:
```








```
Create several tasks with data:
task1:
```
{
"choices0": [
{
"value": "a",
"selected": false
},
{
"value": "b",
"selected": false
}
],
"choices1": [
{
"value": "a",
"selected": false
},
{
"value": "b",
"selected": false
}
],
"choices2": [
{
"value": "a",
"selected": true
}
],
"choices3": [
{
"value": "a",
"selected": true
}
]
}
```
task2:
```{
"choices0": [
{
"value": "a",
"selected": false
},
{
"value": "b",
"selected": false
}
],
"choices1": [
{
"value": "a",
"selected": false
},
{
"value": "b",
"selected": false
}
],
"choices2": [
{
"value": "a",
"selected": true
}
],
"choices3": [
{
"value": "a",
"selected": true
}
]
}
```
... (I have created 10 tasks to reproduce the problem)

**Expected behavior**
Click on "Label All Task" and the choices aren't selected.

**Screenshots**
Project view:

![Image](https://github.com/user-attachments/assets/27c53ef0-0794-48ce-a3aa-3f1e17ccd8c1)

GIF:

https://github.com/user-attachments/assets/d8c3291f-c050-4e10-9bbf-eaa73b445eaf

**Environment (please complete the following information):**
- OS: Docker on macos
- Label Studio Version 1.14.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.