//
// SPDX-License-Identifier: AGPL-3.0
-import { bindDataExplorerActions } from "~/store/data-explorer/data-explorer-action";
+import { Dispatch } from "redux";
+import { bindDataExplorerActions } from "store/data-explorer/data-explorer-action";
export const TRASH_PANEL_ID = "trashPanel";
export const trashPanelActions = bindDataExplorerActions(TRASH_PANEL_ID);
-export const loadTrashPanel = () => trashPanelActions.REQUEST_ITEMS();
+export const loadTrashPanel = () => (dispatch: Dispatch) => {
+ dispatch(trashPanelActions.RESET_EXPLORER_SEARCH_VALUE());
+ dispatch(trashPanelActions.REQUEST_ITEMS());
+};
\ No newline at end of file