change code after PR
[arvados.git] / src / store / search-bar / search-bar-actions.ts
index 32f120189b7a5e085e342b5435fb7964ce9f0ac5..3aceb658870c772fc5f6caffbbc7fd97b8066f05 100644 (file)
@@ -25,8 +25,7 @@ export const goToView = (currentView: string) => searchBarActions.SET_CURRENT_VI
 export const searchData = (searchValue: string) => 
     async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
         dispatch(searchBarActions.SET_SEARCH_RESULTS([]));
-        const user = getState().auth.user;
-        if (user && searchValue) {
+        if (searchValue) {
             const filters = getFilters('name', searchValue);
             // set user.uuid search only in Projects, the empty value search by whole app
             const { items } = await services.groupsService.contents('', {