mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
fix: linkage of association data in nested sub-tables within multi-layer sub-form (#5710)
This commit is contained in:
parent
58017e521d
commit
a59f93b68d
@ -13,7 +13,7 @@ import { RecursionField, connect, mapProps, observer, useField, useFieldSchema,
|
|||||||
import { uid } from '@formily/shared';
|
import { uid } from '@formily/shared';
|
||||||
import { Space, message } from 'antd';
|
import { Space, message } from 'antd';
|
||||||
import { isFunction } from 'mathjs';
|
import { isFunction } from 'mathjs';
|
||||||
import { last } from 'lodash';
|
import { isEqual } from 'lodash';
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { ClearCollectionFieldContext, RecordProvider, useAPIClient, useCollectionRecordData } from '../../../';
|
import { ClearCollectionFieldContext, RecordProvider, useAPIClient, useCollectionRecordData } from '../../../';
|
||||||
@ -83,7 +83,7 @@ const InternalAssociationSelect = observer(
|
|||||||
if (
|
if (
|
||||||
linkageFields.includes(fieldPath?.props?.name) &&
|
linkageFields.includes(fieldPath?.props?.name) &&
|
||||||
field.value &&
|
field.value &&
|
||||||
last(fieldPath?.indexes) === last(field?.indexes) &&
|
isEqual(fieldPath?.indexes, field?.indexes) &&
|
||||||
fieldPath?.props?.name !== field.props.name
|
fieldPath?.props?.name !== field.props.name
|
||||||
) {
|
) {
|
||||||
field.setValue(undefined);
|
field.setValue(undefined);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user