X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/909844cdb1eda3d4cd31f3fa1818ee7eca62d319..8d374520f28b507e8934d57be46374044fb93e2f:/src/store/process-panel/process-panel-actions.ts diff --git a/src/store/process-panel/process-panel-actions.ts b/src/store/process-panel/process-panel-actions.ts index 2e5fb6b9cf..962f5dfcf3 100644 --- a/src/store/process-panel/process-panel-actions.ts +++ b/src/store/process-panel/process-panel-actions.ts @@ -13,7 +13,7 @@ import { snackbarActions } from 'store/snackbar/snackbar-actions'; import { SnackbarKind } from '../snackbar/snackbar-actions'; import { showWorkflowDetails } from 'store/workflow-panel/workflow-panel-actions'; import { loadSubprocessPanel } from "../subprocess-panel/subprocess-panel-actions"; -import { initProcessLogsPanel } from "store/process-logs-panel/process-logs-panel-actions"; +import { initProcessLogsPanel, processLogsPanelActions } from "store/process-logs-panel/process-logs-panel-actions"; export const processPanelActions = unionize({ SET_PROCESS_PANEL_CONTAINER_REQUEST_UUID: ofType(), @@ -26,9 +26,10 @@ export type ProcessPanelAction = UnionOf; export const toggleProcessPanelFilter = processPanelActions.TOGGLE_PROCESS_PANEL_FILTER; export const loadProcessPanel = (uuid: string) => - (dispatch: Dispatch) => { + async (dispatch: Dispatch) => { + dispatch(processLogsPanelActions.RESET_PROCESS_LOGS_PANEL()); dispatch(processPanelActions.SET_PROCESS_PANEL_CONTAINER_REQUEST_UUID(uuid)); - dispatch(loadProcess(uuid)); + await dispatch(loadProcess(uuid)); dispatch(initProcessPanelFilters); dispatch(initProcessLogsPanel(uuid)); dispatch(loadSubprocessPanel());