From f7b7f541b3aa984ba3580bd8ffa74cde49548108 Mon Sep 17 00:00:00 2001 From: Olga Nad Date: Thu, 12 May 2022 16:11:48 -0500 Subject: [PATCH] fix: fix final nits Signed-off-by: Olga Nad --- .../MapTaskExecutionListItem.tsx | 2 +- .../ReactFlow/ReactFlowGraphComponent.tsx | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/packages/zapp/console/src/components/Executions/TaskExecutionsList/MapTaskExecutionListItem.tsx b/packages/zapp/console/src/components/Executions/TaskExecutionsList/MapTaskExecutionListItem.tsx index 41f93fef5..3fdf143c2 100644 --- a/packages/zapp/console/src/components/Executions/TaskExecutionsList/MapTaskExecutionListItem.tsx +++ b/packages/zapp/console/src/components/Executions/TaskExecutionsList/MapTaskExecutionListItem.tsx @@ -82,7 +82,7 @@ export const MapTaskExecutionsListItem: React.FC if (!logs) { return null; } - const key = `${id}-${phase}-${selectedPhase}`; + const key = `${id}-${phase}`; return ( { onPhaseSelectionChanged, rfGraphJson: null, }); - // const [nodeExecutionUpdateCount, setNodeExecutionUpdateCount] = useState(0); + const onAddNestedView = (view) => { const currentView = state.currentNestedView[view.parent] || []; const newView = { @@ -101,24 +101,12 @@ const ReactFlowGraphComponent = (props) => { useEffect(() => { const newRFGraphData = buildReactFlowGraphData(); - // console.log('CLO ~ useEffect ~ newRFGraphData', newRFGraphData); setState((state) => ({ ...state, rfGraphJson: newRFGraphData, })); }, [state.currentNestedView, state.nodeExecutionsById]); - // useEffect(() => { - // if (nodeExecutionUpdateCount < 2) { - // const newRFGraphData = buildReactFlowGraphData(); - // setState((state) => ({ - // ...state, - // rfGraphJson: newRFGraphData, - // })); - // setNodeExecutionUpdateCount(nodeExecutionUpdateCount + 1); - // } - // }, [state.nodeExecutionsById]); - useEffect(() => { if (graphNodeCountChanged(state.data, data)) { setState((state) => ({