File tree Expand file tree Collapse file tree
src/pages/settings/Subscription/CardSection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,8 +79,14 @@ function CardSection() {
7979 } , [ ] ) ;
8080
8181 const viewPurchases = useCallback ( ( ) => {
82- const query = buildQueryStringFromFilterFormValues ( { merchant : CONST . EXPENSIFY_MERCHANT } ) ;
83- Navigation . navigate ( ROUTES . SEARCH_ROOT . getRoute ( { query} ) ) ;
82+ const query = buildQueryStringFromFilterFormValues ( {
83+ type : CONST . SEARCH . DATA_TYPES . EXPENSE ,
84+ status : CONST . SEARCH . STATUS . EXPENSE . ALL ,
85+ merchant : CONST . EXPENSIFY_MERCHANT ,
86+ } ) ;
87+
88+ // rawQuery is needed to populate rawFilterList, which prevents useSuggestedSearchDefaultNavigation from auto-redirecting to actionable searches.
89+ Navigation . navigate ( ROUTES . SEARCH_ROOT . getRoute ( { query, rawQuery : query } ) ) ;
8490 } , [ ] ) ;
8591
8692 const [ billingStatus , setBillingStatus ] = useState < BillingStatusResult | undefined > ( ( ) =>
You can’t perform that action at this time.
0 commit comments