Steps to reproduce: 1. Create a task A 2. Create a task B 3. From A, open the modal to create a subtask C **but do not submit**. 4. Leave the modal by clicking on the backdrop (the intent is to cancel the creation) 5. From B, open the modal to create a subtask D and submit. State: The task D 's parent is A. Expected state: The task D 's parent should be B. https://github.com/user-attachments/assets/6c2fc32a-7d53-48e6-8d5e-6ee98d27228d