fix(collection-manager): exclude reverse parameters when overriding
This commit is contained in:
parent
0b6fed79d3
commit
a0910f0e2e
@ -1,12 +1,12 @@
|
|||||||
import { ArrayTable } from '@formily/antd';
|
import { ArrayTable } from '@formily/antd';
|
||||||
import { ISchema, useForm } from '@formily/react';
|
import { ISchema, useForm } from '@formily/react';
|
||||||
import { uid } from '@formily/shared';
|
import { uid } from '@formily/shared';
|
||||||
|
import { omit, set } from 'lodash';
|
||||||
import cloneDeep from 'lodash/cloneDeep';
|
import cloneDeep from 'lodash/cloneDeep';
|
||||||
import { set, omit } from 'lodash';
|
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { useAPIClient, useRequest } from '../../api-client';
|
import { useAPIClient, useRequest } from '../../api-client';
|
||||||
import { useRecord, RecordProvider } from '../../record-provider';
|
import { RecordProvider, useRecord } from '../../record-provider';
|
||||||
import { ActionContext, SchemaComponent, useActionContext, useCompile } from '../../schema-component';
|
import { ActionContext, SchemaComponent, useActionContext, useCompile } from '../../schema-component';
|
||||||
import { useCancelAction } from '../action-hooks';
|
import { useCancelAction } from '../action-hooks';
|
||||||
import { useCollectionManager } from '../hooks';
|
import { useCollectionManager } from '../hooks';
|
||||||
@ -98,8 +98,11 @@ const useOverridingCollectionField = () => {
|
|||||||
'collectionName',
|
'collectionName',
|
||||||
'autoCreateReverseField',
|
'autoCreateReverseField',
|
||||||
'uiSchema.x-uid',
|
'uiSchema.x-uid',
|
||||||
'reverseField.key',
|
'reverseField',
|
||||||
'reverseField.uiSchemaUid',
|
'reverseKey',
|
||||||
|
'parentKey',
|
||||||
|
// 'reverseField.key',
|
||||||
|
// 'reverseField.uiSchemaUid',
|
||||||
]);
|
]);
|
||||||
await resource.create({
|
await resource.create({
|
||||||
values: data,
|
values: data,
|
||||||
|
Loading…
Reference in New Issue
Block a user