From: Lucas Di Pentima Date: Tue, 22 Mar 2022 14:27:35 +0000 (-0300) Subject: 16672: Avoids log panel "blinking" when changing process view. X-Git-Tag: 2.4.0~2^2~2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/35d85b5905b1bfed1d5b7a43882afe79780ee6d2 16672: Avoids log panel "blinking" when changing process view. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/src/store/process-panel/process-panel-actions.ts b/src/store/process-panel/process-panel-actions.ts index d2921d73..962f5dfc 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(), @@ -27,6 +27,7 @@ export const toggleProcessPanelFilter = processPanelActions.TOGGLE_PROCESS_PANEL export const loadProcessPanel = (uuid: string) => async (dispatch: Dispatch) => { + dispatch(processLogsPanelActions.RESET_PROCESS_LOGS_PANEL()); dispatch(processPanelActions.SET_PROCESS_PANEL_CONTAINER_REQUEST_UUID(uuid)); await dispatch(loadProcess(uuid)); dispatch(initProcessPanelFilters);