mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-26 03:50:31 +00:00
Merge branch 'main' into feat/telemetry-meter
This commit is contained in:
commit
f069adb195
@ -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
|
||||
```
|
||||
|
||||
@ -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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user