From db13f85a3c7d4b74ab66faa4c9d1b4b76af69ab0 Mon Sep 17 00:00:00 2001 From: Shaheer Kochai Date: Mon, 4 Aug 2025 10:28:51 +0430 Subject: [PATCH 1/2] fix: fix the issue of stale pipeline processor state while switching between different processors (#8661) --- .../PipelineListsView/AddNewProcessor/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/container/PipelinePage/PipelineListsView/AddNewProcessor/index.tsx b/frontend/src/container/PipelinePage/PipelineListsView/AddNewProcessor/index.tsx index 7d9edbc48bec..4199fee1e959 100644 --- a/frontend/src/container/PipelinePage/PipelineListsView/AddNewProcessor/index.tsx +++ b/frontend/src/container/PipelinePage/PipelineListsView/AddNewProcessor/index.tsx @@ -33,6 +33,10 @@ function AddNewProcessor({ const isAdd = isActionType === 'add-processor'; useEffect(() => { + if (isEdit || isAdd) { + // Reset form first to clear any stale fields from previous processors + form.resetFields(); + } if (isEdit && selectedProcessorData && expandedPipelineData?.config) { const findRecordIndex = getRecordIndex( expandedPipelineData?.config, @@ -46,9 +50,6 @@ function AddNewProcessor({ setProcessorType(updatedProcessorData.type); form.setFieldsValue(updatedProcessorData); } - if (isAdd) { - form.resetFields(); - } }, [form, isEdit, isAdd, selectedProcessorData, expandedPipelineData?.config]); const handleProcessorType = (value: string | unknown): void => { From 090538f11f18249fcb1b00bbdc6cf15d89a86980 Mon Sep 17 00:00:00 2001 From: nikhilmantri0902 Date: Mon, 4 Aug 2025 14:11:19 +0530 Subject: [PATCH 2/2] docs: add step to cd into frontend directory before yarn commands (#8696) --- docs/contributing/development.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/contributing/development.md b/docs/contributing/development.md index abbd2ce45dc9..27cbc0355722 100644 --- a/docs/contributing/development.md +++ b/docs/contributing/development.md @@ -75,17 +75,22 @@ This command: ### 3. Setting up the Frontend -1. Install dependencies: +1. Navigate to the frontend directory: + ```bash + cd frontend + ``` + +2. Install dependencies: ```bash yarn install ``` -2. Create a `.env` file in the `frontend` directory: +3. Create a `.env` file in this directory: ```env FRONTEND_API_ENDPOINT=http://localhost:8080 ``` -3. Start the development server: +4. Start the development server: ```bash yarn dev ```