Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / store / all-processes-panel / all-processes-panel-action.ts
index 3d30eaec46dcc58ebdf9aeb485bbdd968314c302..c33cd823cff8bda05787bcd0c78e4af8c02ac58e 100644 (file)
@@ -2,9 +2,13 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
+import { Dispatch } from "redux";
 import { bindDataExplorerActions } from "../data-explorer/data-explorer-action";
 
 export const ALL_PROCESSES_PANEL_ID = "allProcessesPanel";
 export const allProcessesPanelActions = bindDataExplorerActions(ALL_PROCESSES_PANEL_ID);
 
-export const loadAllProcessesPanel = () => allProcessesPanelActions.REQUEST_ITEMS();
+export const loadAllProcessesPanel = () => (dispatch: Dispatch) => {
+    dispatch(allProcessesPanelActions.RESET_EXPLORER_SEARCH_VALUE());
+    dispatch(allProcessesPanelActions.REQUEST_ITEMS());
+}