ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Selecting No project as Project on Add Task adds a __None__ value by default

Open its-me-abhishek opened this issue 10 months ago • 1 comments

Describe the bug The previous implementation while iterating over the project field to create and store tasks introduced a bug. If someone tries to choose no project as a project, either they have to leave the space empty, or it will just add __NONE__ as a value, to that project. This needs to be fixed

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Add Task'
  2. Click on 'Project field'
  3. Select None
  4. See error

Expected behavior It should have been an empty string ideally, but a value is being passed down

Image

Screenshots If applicable, add screenshots to help explain your problem.

https://github.com/user-attachments/assets/615b9058-3b35-49de-82a8-83a7ba44e510

Additional context There are no unit tests to check this edge case, hence it probably got skipped. Shall also add the same to prevent further errors.

its-me-abhishek avatar Jan 06 '26 12:01 its-me-abhishek

Hi @its-me-abhishek! I’d love to work on this bug. I’ll submit a PR soon

ShivaGupta-14 avatar Jan 06 '26 12:01 ShivaGupta-14