Feat: Store the pagerank field at the outermost #3794 (#3822)

### What problem does this PR solve?

Feat: Store the pagerank field at the outermost #3794

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu 2024-12-03 11:55:21 +08:00 committed by GitHub
parent 7b6a5ffaff
commit e66addc82d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ const PageRank = () => {
<Flex gap={20} align="center">
<Flex flex={1}>
<Form.Item
name={['parser_config', 'pagerank']}
name={['pagerank']}
noStyle
initialValue={0}
rules={[{ required: true }]}
@ -18,7 +18,7 @@ const PageRank = () => {
</Form.Item>
</Flex>
<Form.Item
name={['parser_config', 'pagerank']}
name={['pagerank']}
noStyle
initialValue={0}
rules={[{ required: true }]}

View File

@ -59,6 +59,7 @@ export const useFetchKnowledgeConfigurationOnMount = (form: FormInstance) => {
'parser_id',
'language',
'parser_config',
'pagerank',
]),
avatar: fileList,
});