Skip to content

Commit

Permalink
fix: crash when offline
Browse files Browse the repository at this point in the history
  • Loading branch information
kubabutkiewicz committed Mar 8, 2024
1 parent 401bb21 commit ad4ddd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/report/ReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -885,11 +885,11 @@ export default withOnyx<ReportActionItemProps, ReportActionItemOnyxProps>({
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 ad4ddd8

Please sign in to comment.