Removing value={field} from EditTag (#10767)

### What problem does this PR solve?

Could not delete Entity Types from the Knowledge Graph settings. The
list was not updated on pressing the X on a tag.

What I think happened:
- value={field} was passing ['parser_config','entity_types'] to EditTag
instead of the real tags.
- That blocked AntD Form from injecting the right value/onChange.
- Clicking X filtered the wrong “value,” so no visible change.

Fix:
- Remove value={field} and let Form.Item control EditTag.
- EditTag now gets the real tags array and emits onChange(tags), Form
captures it.


Now it works.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Adrian Altermatt
2025-10-27 04:09:20 +01:00
committed by GitHub
parent 24ab857471
commit 97401c1e33

View File

@ -25,7 +25,7 @@ const EntityTypesItem = ({
rules={[{ required: true }]}
initialValue={initialEntityTypes}
>
<EditTag value={field}></EditTag>
<EditTag />
</Form.Item>
);
};