Skip to content

Commit

Permalink
Merge pull request #37985 from kubabutkiewicz/fix/37965
Browse files Browse the repository at this point in the history
Fix app crash when navigating to IOU when created offline
  • Loading branch information
luacmartins authored Mar 8, 2024
2 parents f0cd513 + 45b8ddd commit 2cf6077
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/home/report/ReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -880,16 +880,16 @@ export default withOnyx<ReportActionItemProps, ReportActionItemOnyxProps>({
iouReport: {
key: ({action}) => {
const iouReportID = ReportActionsUtils.getIOUReportIDFromReportActionPreview(action);
return `${ONYXKEYS.COLLECTION.REPORT}${iouReportID ?? ''}`;
return `${ONYXKEYS.COLLECTION.REPORT}${iouReportID ?? 0}`;
},
initialValue: {} as OnyxTypes.Report,
},
policyReportFields: {
key: ({report}) => `${ONYXKEYS.COLLECTION.POLICY_REPORT_FIELDS}${report.policyID ?? ''}`,
key: ({report}) => `${ONYXKEYS.COLLECTION.POLICY_REPORT_FIELDS}${report.policyID ?? 0}`,
initialValue: {},
},
policy: {
key: ({report}) => `${ONYXKEYS.COLLECTION.POLICY}${report.policyID ?? ''}`,
key: ({report}) => `${ONYXKEYS.COLLECTION.POLICY}${report.policyID ?? 0}`,
initialValue: {} as OnyxTypes.Policy,
},
emojiReactions: {
Expand Down

0 comments on commit 2cf6077

Please sign in to comment.