@@ -18,7 +18,6 @@ import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
18
18
import type { PlatformStackScreenProps } from '@libs/Navigation/PlatformStackNavigation/types' ;
19
19
import type { SearchFullscreenNavigatorParamList } from '@libs/Navigation/types' ;
20
20
import { isValidReportIDFromPath } from '@libs/ReportUtils' ;
21
- import { buildSearchQueryJSON } from '@libs/SearchQueryUtils' ;
22
21
import Navigation from '@navigation/Navigation' ;
23
22
import ReactionListWrapper from '@pages/home/ReactionListWrapper' ;
24
23
import { openReport } from '@userActions/Report' ;
@@ -63,13 +62,6 @@ function SearchMoneyRequestReportPage({route}: SearchMoneyRequestPageProps) {
63
62
openReport ( reportIDFromRoute , '' , [ ] , undefined , undefined , false , [ ] , undefined , true ) ;
64
63
} , [ reportIDFromRoute ] ) ;
65
64
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
-
73
65
// eslint-disable-next-line rulesdir/no-negated-variables
74
66
const shouldShowNotFoundPage = useMemo (
75
67
( ) : boolean => {
@@ -138,7 +130,7 @@ function SearchMoneyRequestReportPage({route}: SearchMoneyRequestPageProps) {
138
130
shouldDisplaySearch = { false }
139
131
shouldShowLoadingBar = { false }
140
132
/>
141
- < SearchTypeMenu queryJSON = { queryJSON } />
133
+ < SearchTypeMenu queryJSON = { undefined } />
142
134
</ View >
143
135
< NavigationTabBar selectedTab = { NAVIGATION_TABS . SEARCH } />
144
136
</ View >
0 commit comments