X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c276ce4c8dd3cf27ad6d17eca9af473f353fda55..2a7fd99c212c33a1ec9911f8529fa5afc59a7bb2:/src/store/trash-panel/trash-panel-action.ts diff --git a/src/store/trash-panel/trash-panel-action.ts b/src/store/trash-panel/trash-panel-action.ts index 6be93228be..78b1a9729d 100644 --- a/src/store/trash-panel/trash-panel-action.ts +++ b/src/store/trash-panel/trash-panel-action.ts @@ -2,10 +2,13 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { bindDataExplorerActions } from "../data-explorer/data-explorer-action"; -import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-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