diff --git a/src/pages/Search/SearchMoneyRequestReportPage.tsx b/src/pages/Search/SearchMoneyRequestReportPage.tsx index b6fcac0c3dbc..5299c50b619e 100644 --- a/src/pages/Search/SearchMoneyRequestReportPage.tsx +++ b/src/pages/Search/SearchMoneyRequestReportPage.tsx @@ -18,7 +18,6 @@ import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID'; import type {PlatformStackScreenProps} from '@libs/Navigation/PlatformStackNavigation/types'; import type {SearchFullscreenNavigatorParamList} from '@libs/Navigation/types'; import {isValidReportIDFromPath} from '@libs/ReportUtils'; -import {buildSearchQueryJSON} from '@libs/SearchQueryUtils'; import Navigation from '@navigation/Navigation'; import ReactionListWrapper from '@pages/home/ReactionListWrapper'; import {openReport} from '@userActions/Report'; @@ -63,13 +62,6 @@ function SearchMoneyRequestReportPage({route}: SearchMoneyRequestPageProps) { openReport(reportIDFromRoute, '', [], undefined, undefined, false, [], undefined, true); }, [reportIDFromRoute]); - const queryJSON = useMemo(() => { - const backTo = route.params.backTo ?? ''; - const queryString = backTo.split('?').at(1) ?? ''; - const q = new URLSearchParams(queryString).get('q') ?? ''; - return buildSearchQueryJSON(q); - }, [route.params.backTo]); - // eslint-disable-next-line rulesdir/no-negated-variables const shouldShowNotFoundPage = useMemo( (): boolean => { @@ -138,7 +130,7 @@ function SearchMoneyRequestReportPage({route}: SearchMoneyRequestPageProps) { shouldDisplaySearch={false} shouldShowLoadingBar={false} /> - +