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