| โฆ | โฆ | @@ -198,6 +205,37 @@ export function NewTaskDraftScreen(props: { | |
| 234 | + | ); | |
| 235 | + | return; | |
| 236 | + | } | |
| 237 | + | navigation.dispatch(StackActions.replace("Home")); | |
๐ก Medium threads/NewTaskDraftScreen.tsx:237
removeClonedProject always dispatches StackActions.replace("Home") when deletion resolves, so selecting another project while the deletion is in flight still ejects the user to Home even though that project was not removed. Disable project switching during deletion or verify that the deleted project is still selected before navigating.
๐ Reply "fix it for me" or copy this AI Prompt for your agent:
| 1 | In file @apps/mobile/src/features/threads/NewTaskDraftScreen.tsx around line 237: |
| 2 | |
| 3 | `removeClonedProject` always dispatches `StackActions.replace("Home")` when deletion resolves, so selecting another project while the deletion is in flight still ejects the user to Home even though that project was not removed. Disable project switching during deletion or verify that the deleted project is still selected before navigating. |
Fixed in 2fcb3985e9: the removed project is captured before the await and Home is only replaced if it is still the selected project afterwards.