X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f5c0cb11102a006cda59711f29458b7569b9a21f..refs/heads/19865-search-clearing-fix:/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 6be93228..78b1a972 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