Skip to content

Commit eda8408

Browse files
authored
Merge pull request #61464 from software-mansion-labs/revert-60873-issue-60574
2 parents 72060fc + 1bd96de commit eda8408

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/pages/Search/SearchMoneyRequestReportPage.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
1818
import type {PlatformStackScreenProps} from '@libs/Navigation/PlatformStackNavigation/types';
1919
import type {SearchFullscreenNavigatorParamList} from '@libs/Navigation/types';
2020
import {isValidReportIDFromPath} from '@libs/ReportUtils';
21-
import {buildSearchQueryJSON} from '@libs/SearchQueryUtils';
2221
import Navigation from '@navigation/Navigation';
2322
import ReactionListWrapper from '@pages/home/ReactionListWrapper';
2423
import {openReport} from '@userActions/Report';
@@ -63,13 +62,6 @@ function SearchMoneyRequestReportPage({route}: SearchMoneyRequestPageProps) {
6362
openReport(reportIDFromRoute, '', [], undefined, undefined, false, [], undefined, true);
6463
}, [reportIDFromRoute]);
6564

66-
const queryJSON = useMemo(() => {
67-
const backTo = route.params.backTo ?? '';
68-
const queryString = backTo.split('?').at(1) ?? '';
69-
const q = new URLSearchParams(queryString).get('q') ?? '';
70-
return buildSearchQueryJSON(q);
71-
}, [route.params.backTo]);
72-
7365
// eslint-disable-next-line rulesdir/no-negated-variables
7466
const shouldShowNotFoundPage = useMemo(
7567
(): boolean => {
@@ -138,7 +130,7 @@ function SearchMoneyRequestReportPage({route}: SearchMoneyRequestPageProps) {
138130
shouldDisplaySearch={false}
139131
shouldShowLoadingBar={false}
140132
/>
141-
<SearchTypeMenu queryJSON={queryJSON} />
133+
<SearchTypeMenu queryJSON={undefined} />
142134
</View>
143135
<NavigationTabBar selectedTab={NAVIGATION_TABS.SEARCH} />
144136
</View>

0 commit comments

Comments
 (0)