From fad1ff29dd44d33468681c69bada9ee307034ebd Mon Sep 17 00:00:00 2001 From: Shubham Takode Date: Mon, 4 Mar 2024 17:03:20 +0530 Subject: [PATCH] fix zoom issue --- .../edit-pipeline-page/react/pipeline-flow.component.tsx | 2 +- .../edit-pipeline-page/react/pipeline-step.component.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/webapp-common/pipelines/edit-pipeline-page/react/pipeline-flow.component.tsx b/src/app/webapp-common/pipelines/edit-pipeline-page/react/pipeline-flow.component.tsx index 03e49c7f..b15ddd8c 100644 --- a/src/app/webapp-common/pipelines/edit-pipeline-page/react/pipeline-flow.component.tsx +++ b/src/app/webapp-common/pipelines/edit-pipeline-page/react/pipeline-flow.component.tsx @@ -130,7 +130,7 @@ export const PipelineFlowComponent: FunctionComponent = ( onEdgeUpdateEnd={onEdgeUpdateEnd} onEdgeUpdateStart={onEdgeUpdateStart} defaultViewport={{ x: 0, y: 0, zoom: 1 }} - maxZoom={1.5} + maxZoom={1} onConnect={onConnect} onEdgeUpdate={onEdgeUpdate} fitView diff --git a/src/app/webapp-common/pipelines/edit-pipeline-page/react/pipeline-step.component.tsx b/src/app/webapp-common/pipelines/edit-pipeline-page/react/pipeline-step.component.tsx index 4bbb6641..5b27ad5c 100644 --- a/src/app/webapp-common/pipelines/edit-pipeline-page/react/pipeline-step.component.tsx +++ b/src/app/webapp-common/pipelines/edit-pipeline-page/react/pipeline-step.component.tsx @@ -26,14 +26,14 @@ export default function PipelineStepComponent({ data, selected, ...others }) { className={"al-icon sm-md al-ico-type-" + (data.experimentDetails?.type ? (data.experimentDetails.type.toString()).replace('_', '-') : 'training')} data-id="stepResultButton" > -
{data.name}
+ }>{data?.name}