Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / store / shared-with-me-panel / shared-with-me-panel-actions.ts
index 1210edbbdf6406c653cb6f416b3a884a13af91b7..616bd005de301c801fddd8c32b6f8f9c1666c3ff 100644 (file)
@@ -2,17 +2,12 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
+import { Dispatch } from "redux";
 import { bindDataExplorerActions } from "../data-explorer/data-explorer-action";
-import { Dispatch } from 'redux';
-import { ServiceRepository } from "services/services";
-import { RootState } from 'store/store';
 
 export const SHARED_WITH_ME_PANEL_ID = "sharedWithMePanel";
 export const sharedWithMePanelActions = bindDataExplorerActions(SHARED_WITH_ME_PANEL_ID);
-
-export const loadSharedWithMePanel = () =>
-    (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
-        dispatch(sharedWithMePanelActions.REQUEST_ITEMS());
-    };
-
-
+export const loadSharedWithMePanel = () => (dispatch: Dispatch) => {
+    dispatch(sharedWithMePanelActions.RESET_EXPLORER_SEARCH_VALUE());
+    dispatch(sharedWithMePanelActions.REQUEST_ITEMS());
+};
\ No newline at end of file