Skip to content

Commit

Permalink
Merge pull request Expensify#31862 from abzokhattab/fix-app-crashes-w…
Browse files Browse the repository at this point in the history
…hen-canceling-a-task-in-offline-mode

Fix app crashing when cancelling a task in offline mode
  • Loading branch information
arosiclair authored Nov 27, 2023
2 parents 4efa2c0 + 998548e commit d4ec0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ function cancelTask(taskReportID, taskTitle, originalStateNum, originalStatusNum
key: `${ONYXKEYS.COLLECTION.REPORT}${parentReport.reportID}`,
value: {
lastMessageText: ReportActionsUtils.getLastVisibleMessage(parentReport.reportID, optimisticReportActions).lastMessageText,
lastVisibleActionCreated: ReportActionsUtils.getLastVisibleAction(parentReport.reportID, optimisticReportActions).created,
lastVisibleActionCreated: lodashGet(ReportActionsUtils.getLastVisibleAction(parentReport.reportID, optimisticReportActions), 'created'),
},
},
{
Expand Down

0 comments on commit d4ec0ce

Please sign in to comment.