diff --git a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx index 3ff4e8459..464c932d4 100644 --- a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx @@ -1,16 +1,16 @@ import { LoadingOutlined, PlusOutlined } from '@ant-design/icons'; +import { onFieldChange } from '@formily/core'; import { RecursionField, connect, mapProps, observer, useField, useFieldSchema, useForm } from '@formily/react'; -import { onFieldChange, onFormInputChange } from '@formily/core'; import { uid } from '@formily/shared'; import { Space, message } from 'antd'; import { isFunction } from 'mathjs'; -import React, { useState, useEffect } from 'react'; +import React, { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { RecordProvider, useAPIClient } from '../../../'; import { isVariable } from '../../../variables/utils/isVariable'; +import { getInnermostKeyAndValue } from '../../common/utils/uitls'; import { RemoteSelect, RemoteSelectProps } from '../remote-select'; import useServiceOptions, { useAssociationFieldContext } from './hooks'; -import { getInnermostKeyAndValue } from '../../common/utils/uitls'; export type AssociationSelectProps

= RemoteSelectProps

& { action?: string; @@ -24,7 +24,7 @@ export const filterAnalyses = (filters): any[] => { const type = Object.keys(filters)[0] || '$and'; const conditions = filters[type]; const results = []; - conditions.map((c) => { + conditions?.map((c) => { const jsonlogic = getInnermostKeyAndValue(c); const operator = jsonlogic?.key;