mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:46:38 +00:00
fix: sub-form record provider data failed to matching (#2337)
This commit is contained in:
parent
6aefff7409
commit
e8c9164b5d
@ -10,6 +10,7 @@ import React, { useContext } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { AssociationFieldContext } from './context';
|
||||
import { useAssociationFieldContext } from './hooks';
|
||||
import { RecordProvider, useRecord } from '../../../record-provider';
|
||||
|
||||
export const Nester = (props) => {
|
||||
const { options } = useContext(AssociationFieldContext);
|
||||
@ -92,7 +93,9 @@ const ToManyNester = observer(
|
||||
</Tooltip>
|
||||
)}
|
||||
</div>
|
||||
<RecursionField onlyRenderProperties basePath={field.address.concat(index)} schema={fieldSchema} />
|
||||
<RecordProvider record={value}>
|
||||
<RecursionField onlyRenderProperties basePath={field.address.concat(index)} schema={fieldSchema} />
|
||||
</RecordProvider>
|
||||
<Divider />
|
||||
</React.Fragment>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user