From 35d85b5905b1bfed1d5b7a43882afe79780ee6d2 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Tue, 22 Mar 2022 11:27:35 -0300 Subject: [PATCH] 16672: Avoids log panel "blinking" when changing process view. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- src/store/process-panel/process-panel-actions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2