diff --git a/src/Routes/SidebarRight/AddPipeline/Wizard.jsx b/src/Routes/SidebarRight/AddPipeline/Wizard.jsx index 123d8dacb..e4c7f8f5f 100644 --- a/src/Routes/SidebarRight/AddPipeline/Wizard.jsx +++ b/src/Routes/SidebarRight/AddPipeline/Wizard.jsx @@ -91,7 +91,6 @@ const Wizard = ({ const [isStreamingPipeline, setIsStreamingPipeline] = useState( initialState.kind === 'stream' ); - const [pageLoaded, setPageLoaded] = useState(false); const [initStepNames] = useState( isRunPipeline ? RunPipelineStepNames : stepNames ); @@ -158,14 +157,6 @@ const Wizard = ({ if (!currentKind) { resetKind(undefined); } - - // Ensure valuesState is synchronized with initial form state - const currentFormValues = form.getFieldsValue(); - if (currentFormValues && Object.keys(currentFormValues).length > 0) { - setValuesState(currentFormValues); - } - - setPageLoaded(true); }, []); useLayoutEffect(() => { @@ -235,50 +226,48 @@ const Wizard = ({ - {pageLoaded && ( - - setReloadGraphPreview(!reloadGraphPreview)} - orientation="vertical" - style={{ boxShadow: '0 0 10px rgba(0, 0, 0, 0.1)' }}> - - - {valuesState && - valuesState.nodes && - valuesState.nodes.length > 0 ? ( - - ) : ( -
- {!valuesState - ? 'Loading pipeline data...' - : !valuesState.nodes - ? 'No nodes defined...' - : 'Waiting for pipeline data...'} -
- )} -
-
- - - - Text editor - - + setReloadGraphPreview(!reloadGraphPreview)} + orientation="vertical" + style={{ boxShadow: '0 0 10px rgba(0, 0, 0, 0.1)' }}> + + + {valuesState && + valuesState.nodes && + valuesState.nodes.length > 0 ? ( + - - -
-
- )} + ) : ( +
+ {!valuesState + ? 'Loading pipeline data...' + : !valuesState.nodes + ? 'No nodes defined...' + : 'Waiting for pipeline data...'} +
+ )} + +
+ + + + Text editor + + + + + +