X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2f83fcd45b4b23db2bb5bb4afbe1e863ebd77ec6..cb73538f0851cea402a0544861966c2515a24b5b:/services/workbench2/src/store/favorites/favorites-actions.ts diff --git a/services/workbench2/src/store/favorites/favorites-actions.ts b/services/workbench2/src/store/favorites/favorites-actions.ts index bd4d878ed5..1e23f35cbf 100644 --- a/services/workbench2/src/store/favorites/favorites-actions.ts +++ b/services/workbench2/src/store/favorites/favorites-actions.ts @@ -10,6 +10,7 @@ import { checkFavorite } from "./favorites-reducer"; import { snackbarActions, SnackbarKind } from "../snackbar/snackbar-actions"; import { ServiceRepository } from "services/services"; import { progressIndicatorActions } from "store/progress-indicator/progress-indicator-actions"; +import { loadFavoritesTree} from "store/side-panel-tree/side-panel-tree-actions"; export const favoritesActions = unionize({ TOGGLE_FAVORITE: ofType<{ resourceUuid: string }>(), @@ -51,6 +52,7 @@ export const toggleFavorite = (resource: { uuid: string; name: string }) => kind: SnackbarKind.SUCCESS })); dispatch(progressIndicatorActions.STOP_WORKING("toggleFavorite")); + dispatch(loadFavoritesTree()) }) .catch((e: any) => { dispatch(progressIndicatorActions.STOP_WORKING("toggleFavorite"));