Skip to content

Commit

Permalink
fix: Entity types are only displayed when the knowledge graph is sele…
Browse files Browse the repository at this point in the history
…cted #1594 (#1841)

### 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)
  • Loading branch information
cike8899 authored Aug 7, 2024
1 parent 3c19e31 commit 06dfb83
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 06dfb83

Please sign in to comment.