mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: oneToMa ny e2e test (#6601)
This commit is contained in:
parent
04e943a0b2
commit
69fac11204
@ -33,7 +33,7 @@ import { RemoteSelect, RemoteSelectProps } from '../remote-select';
|
|||||||
import useServiceOptions, { useAssociationFieldContext } from './hooks';
|
import useServiceOptions, { useAssociationFieldContext } from './hooks';
|
||||||
|
|
||||||
const removeIfKeyEmpty = (obj, filterTargetKey) => {
|
const removeIfKeyEmpty = (obj, filterTargetKey) => {
|
||||||
if (!obj || typeof obj !== 'object' || !filterTargetKey) return obj;
|
if (!obj || typeof obj !== 'object' || !filterTargetKey || Array.isArray(obj)) return obj;
|
||||||
return !obj[filterTargetKey] ? null : obj;
|
return !obj[filterTargetKey] ? null : obj;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user