projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
19865: Reset search values on panel loading.
[arvados-workbench2.git]
/
src
/
store
/
favorite-panel
/
favorite-panel-action.ts
diff --git
a/src/store/favorite-panel/favorite-panel-action.ts
b/src/store/favorite-panel/favorite-panel-action.ts
index 067d5ceedb90bbbdc6f947d5b6b2afe5fe2fbf00..85ede867044d2d4bccd1340283f0a735b7391139 100644
(file)
--- 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
//
// 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);
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