Skip to content

Commit f792749

Browse files
committed
update ActionContentRouter selector
1 parent 6a92b53 commit f792749

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pages/inbox/report/actionContents/ActionContentRouter.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ function ActionContentRouter({
144144
const {translate, formatTravelDate} = useLocalize();
145145
const styles = useThemeStyles();
146146

147-
const [originalReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${originalReportID}`, {selector: getStableReportSelector});
147+
const stableReportSelector = (reportEntry: OnyxEntry<OnyxTypes.Report>) => getStableReportSelector(reportEntry);
148+
const [originalReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${originalReportID}`, {selector: stableReportSelector});
148149

149150
// Report that owns this action for mutations (thread / merged-list cases use originalReport). This is a stable projection (heartbeat fields stripped).
150151
const actionOwnerReportStable = originalReport ?? report;

0 commit comments

Comments
 (0)