Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 committed Jun 27, 2024
1 parent 286a10c commit 8c0a1b2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ const PipelineDetails: PipelineCoreDetailsPageComponent = ({ breadcrumbPath }) =
);
}

const panelContent = selectedNode ? (
<SelectedTaskDrawerContent
task={selectedNode.data.pipelineTask}
onClose={() => setSelectedId(null)}
/>
) : null;

return (
<>
<ApplicationsPage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import {
TabContentBody,
TabContent,
PageSection,
FlexItem,
Flex,
} from '@patternfly/react-core';

import PipelineDetailsYAML from '~/concepts/pipelines/content/pipelinesDetails/PipelineDetailsYAML';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const PipelineVisualizationSurface: React.FC<PipelineVisualizationSurfaceProps>

React.useEffect(() => {
let resizeTimeout: NodeJS.Timeout | null;

if (selectedNode) {
// Use a timeout in order to allow the side panel to be shown and window size recomputed
resizeTimeout = setTimeout(() => {
Expand All @@ -62,7 +61,7 @@ const PipelineVisualizationSurface: React.FC<PipelineVisualizationSurfaceProps>
clearTimeout(resizeTimeout);
}
};
}, [selectedIds, controller]);
}, [selectedIds, controller, selectedNode]);

React.useEffect(() => {
const currentModel = controller.toModel();
Expand Down

0 comments on commit 8c0a1b2

Please sign in to comment.