Skip to content

Commit

Permalink
fix: association select report Maximum call stack size exceeded in su…
Browse files Browse the repository at this point in the history
…b-table (nocobase#4278)
  • Loading branch information
katherinehhh authored May 7, 2024
1 parent 0f6c2ab commit 61ac914
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { LoadingOutlined, PlusOutlined } from '@ant-design/icons';
import { onFieldChange } from '@formily/core';
import { onFieldInputValueChange } from '@formily/core';
import { RecursionField, connect, mapProps, observer, useField, useFieldSchema, useForm } from '@formily/react';
import { uid } from '@formily/shared';
import { Space, message } from 'antd';
Expand Down Expand Up @@ -77,7 +77,7 @@ const InternalAssociationSelect = observer(
const id = uid();
form.addEffects(id, () => {
//支持深层次子表单
onFieldChange('*', (fieldPath: any) => {
onFieldInputValueChange('*', (fieldPath: any) => {
const linkageFields = filterAnalyses(field.componentProps?.service?.params?.filter) || [];
if (linkageFields.includes(fieldPath?.props?.name) && field.value) {
field.setValue(field.initialValue);
Expand Down

0 comments on commit 61ac914

Please sign in to comment.