Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

feat: Remove Typography from SwitchForm #1739 (#2059)

balibabu884fd83dc7e7
diff --git a/web/src/pages/flow/switch-form/index.tsx b/web/src/pages/flow/switch-form/index.tsx
index 6f9d11a83b..c3f772bfd8 100644
--- a/web/src/pages/flow/switch-form/index.tsx
+++ b/web/src/pages/flow/switch-form/index.tsx
@@ -1,5 +1,5 @@
import { CloseOutlined } from '@ant-design/icons';
-import { Button, Card, Divider, Form, Input, Select, Typography } from 'antd';
+import { Button, Card, Divider, Form, Input, Select } from 'antd';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import {
@@ -181,14 +181,6 @@ const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => {
options={buildCategorizeToOptions(getSelectedConditionTos())}
/>
</Form.Item>
-
- <Form.Item noStyle shouldUpdate>
- {() => (
- <Typography>
- <pre>{JSON.stringify(form?.getFieldsValue(), null, 2)}</pre>
- </Typography>
- )}
- </Form.Item>
</Form>
);
};