X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/fab044518170a23fe2455b8ac10e15fc91d58aea..refs/heads/19865-search-clearing-fix:/src/store/favorite-panel/favorite-panel-action.ts?ds=sidebyside diff --git a/src/store/favorite-panel/favorite-panel-action.ts b/src/store/favorite-panel/favorite-panel-action.ts index 067d5cee..85ede867 100644 --- a/src/store/favorite-panel/favorite-panel-action.ts +++ b/src/store/favorite-panel/favorite-panel-action.ts @@ -2,9 +2,13 @@ // // SPDX-License-Identifier: AGPL-3.0 +import { Dispatch } from "redux"; import { bindDataExplorerActions } from "../data-explorer/data-explorer-action"; export const FAVORITE_PANEL_ID = "favoritePanel"; export const favoritePanelActions = bindDataExplorerActions(FAVORITE_PANEL_ID); -export const loadFavoritePanel = () => favoritePanelActions.REQUEST_ITEMS(); +export const loadFavoritePanel = () => (dispatch: Dispatch) => { + dispatch(favoritePanelActions.RESET_EXPLORER_SEARCH_VALUE()); + dispatch(favoritePanelActions.REQUEST_ITEMS()); +}; \ No newline at end of file