Skip to content

Commit

Permalink
fix app crash when creating task
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Nov 1, 2023
1 parent 342a2c4 commit b00b220
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 @@ -635,7 +635,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 b00b220

Please sign in to comment.