Skip to content

Commit 7e1e0e7

Browse files
committed
Fix useOnyx in ChatBubbleCell
1 parent eeabde3 commit 7e1e0e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/TransactionItemRow/DataCells/ChatBubbleCell.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ function ChatBubbleCell({transaction, containerStyles}: {transaction: Transactio
2525
const {shouldUseNarrowLayout} = useResponsiveLayout();
2626
const [iouReportAction] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transaction.reportID}`, {
2727
selector: (reportActions) => getIOUActionForTransactionID(Object.values(reportActions ?? {}), transaction.transactionID),
28+
canBeMissing: false,
2829
});
2930

30-
const [transactionReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${iouReportAction?.childReportID}`);
31+
const [transactionReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${iouReportAction?.childReportID}`, {
32+
canBeMissing: false,
33+
});
3134

3235
const threadMessages = useMemo(
3336
() => ({

0 commit comments

Comments
 (0)