### What problem does this PR solve? fix: Entity types are only displayed when the knowledge graph is selected #1594 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
3c19e3125b
commit
06dfb83529
1 changed files with 4 additions and 1 deletions
|
|
@ -98,13 +98,16 @@ const ConfigurationForm = ({ form }: { form: FormInstance }) => {
|
|||
))}
|
||||
</Select>
|
||||
</Form.Item>
|
||||
<EntityTypesItem></EntityTypesItem>
|
||||
|
||||
<Form.Item noStyle dependencies={['parser_id']}>
|
||||
{({ getFieldValue }) => {
|
||||
const parserId = getFieldValue('parser_id');
|
||||
|
||||
return (
|
||||
<>
|
||||
{parserId === 'knowledge_graph' && (
|
||||
<EntityTypesItem></EntityTypesItem>
|
||||
)}
|
||||
{parserId === 'naive' && (
|
||||
<>
|
||||
<MaxTokenNumber></MaxTokenNumber>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue