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.

(cherry picked from commit 4617816)

(CP triggered by mountiny)
  • Loading branch information
mountiny authored and OSBotify committed Nov 21, 2024
1 parent 7657aeb commit 947ac17
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 947ac17

Please sign in to comment.