diff --git a/web/src/pages/flow/categorize-form/dynamic-categorize.tsx b/web/src/pages/flow/categorize-form/dynamic-categorize.tsx index 8843db981ae..8beb7e9a2de 100644 --- a/web/src/pages/flow/categorize-form/dynamic-categorize.tsx +++ b/web/src/pages/flow/categorize-form/dynamic-categorize.tsx @@ -1,6 +1,7 @@ import { CloseOutlined } from '@ant-design/icons'; import { Button, Card, Form, Input, Select, Typography } from 'antd'; import { useUpdateNodeInternals } from 'reactflow'; +import { ICategorizeItem } from '../interface'; import { useBuildCategorizeToOptions, useHandleToSelectChange } from './hooks'; interface IProps { @@ -10,7 +11,7 @@ interface IProps { const DynamicCategorize = ({ nodeId }: IProps) => { const updateNodeInternals = useUpdateNodeInternals(); const form = Form.useFormInstance(); - const options = useBuildCategorizeToOptions(); + const buildCategorizeToOptions = useBuildCategorizeToOptions(); const { handleSelectChange } = useHandleToSelectChange(nodeId); return ( @@ -60,7 +61,15 @@ const DynamicCategorize = ({ nodeId }: IProps) => {