From af2ad3979b1e046749969423623d84511c166818 Mon Sep 17 00:00:00 2001 From: Pawel Kowalczyk Date: Wed, 16 Jan 2019 13:25:40 +0100 Subject: [PATCH] refs #14744-inappropriate-results Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk --- src/store/search-bar/search-bar-actions.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/store/search-bar/search-bar-actions.ts b/src/store/search-bar/search-bar-actions.ts index c81cba04..7d32e609 100644 --- a/src/store/search-bar/search-bar-actions.ts +++ b/src/store/search-bar/search-bar-actions.ts @@ -64,6 +64,7 @@ export const loadRecentQueries = () => export const searchData = (searchValue: string) => async (dispatch: Dispatch, getState: () => RootState) => { const currentView = getState().searchBar.currentView; + dispatch(searchResultsPanelActions.CLEAR()); dispatch(searchBarActions.SET_SEARCH_VALUE(searchValue)); if (searchValue.length > 0) { dispatch(searchGroups(searchValue, 5)); @@ -77,6 +78,7 @@ export const searchData = (searchValue: string) => export const searchAdvanceData = (data: SearchBarAdvanceFormData) => async (dispatch: Dispatch) => { dispatch(saveQuery(data)); + dispatch(searchResultsPanelActions.CLEAR()); dispatch(searchBarActions.SET_CURRENT_VIEW(SearchView.BASIC)); dispatch(searchBarActions.CLOSE_SEARCH_VIEW()); dispatch(navigateToSearchResults); @@ -421,7 +423,8 @@ export const getFilters = (filterName: string, searchValue: string, sq: ParseSea if (!sq.hasKeywords) { filter .addILike(filterName, searchValue, GroupContentsResourcePrefix.COLLECTION) - .addILike(filterName, searchValue, GroupContentsResourcePrefix.PROJECT); + .addILike(filterName, searchValue, GroupContentsResourcePrefix.PROJECT) + .addILike(filterName, searchValue, GroupContentsResourcePrefix.PROCESS); if (isTrashed) { filter.addILike(filterName, searchValue, GroupContentsResourcePrefix.PROCESS); -- 2.39.5