Skip to content

Commit

Permalink
Merge pull request #52888 from Krishna2323/krishna2323/issue/52864
Browse files Browse the repository at this point in the history
[CP Staging] fix: Search - Website crashes after exploring expenses in search for some time.
  • Loading branch information
mountiny authored Nov 21, 2024
2 parents 0029614 + 9194a00 commit 4617816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/usePaginatedReportActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function usePaginatedReportActions(reportID?: string, reportActionID?: string) {
// Use `||` instead of `??` to handle empty string.
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
const reportIDWithDefault = reportID || '-1';
const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`);
const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportIDWithDefault}`);
const canUserPerformWriteAction = ReportUtils.canUserPerformWriteAction(report);

const [sortedAllReportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${reportIDWithDefault}`, {
Expand Down

0 comments on commit 4617816

Please sign in to comment.