Update search to accept newValue as a prop

merge-requests/3337/head
danidfra 2025-02-20 12:54:56 -03:00
rodzic 2bdf76a1bc
commit 558ed9e2fb
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -49,9 +49,9 @@ const clearSearchResults = () => ({
type: SEARCH_RESULTS_CLEAR,
});
const submitSearch = (filter?: SearchFilter) =>
const submitSearch = (filter?: SearchFilter, newValue?: string) =>
(dispatch: AppDispatch, getState: () => RootState) => {
const value = getState().search.value;
const value = newValue ?? getState().search.value;
const type = filter || getState().search.filter || 'statuses';
const accountId = getState().search.accountId;