Merge branch 'main' into feat/telemetry-meter

This commit is contained in:
Vikrant Gupta 2025-08-04 16:54:18 +05:30 committed by GitHub
commit f069adb195
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 6 deletions

View File

@ -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
```

View File

@ -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 => {