Skip to content

Commit

Permalink
Merge pull request #30670 from DylanDylann/fix/30539-app-crash-when-g…
Browse files Browse the repository at this point in the history
…oing-through-task-creation

Fix/30539: App crash when creating task
  • Loading branch information
stitesExpensify authored Nov 2, 2023
2 parents 444a908 + b00b220 commit fcb1fa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,9 @@ function setParentReportID(parentReportID) {
*/
function clearOutTaskInfoAndNavigate(reportID) {
clearOutTaskInfo();
setParentReportID(reportID);
if (reportID && reportID !== '0') {
setParentReportID(reportID);
}
Navigation.navigate(ROUTES.NEW_TASK_DETAILS);
}

Expand Down

0 comments on commit fcb1fa5

Please sign in to comment.