fix: data scope linkage in association field (#2786)
This commit is contained in:
parent
9085f5ca20
commit
59f74326b4
@ -67,7 +67,7 @@ export default function useServiceOptions(props) {
|
||||
|
||||
const _run = async () => {
|
||||
const result = await parseFilter(mergeFilter([filterFromSchema || service?.params?.filter]));
|
||||
setFieldServiceFilter(removeNullCondition(result));
|
||||
setFieldServiceFilter(result);
|
||||
};
|
||||
const run = _.debounce(_run, DEBOUNCE_WAIT);
|
||||
|
||||
|
@ -36,17 +36,15 @@ const useParseDataScopeFilter = ({ exclude }: Props = { exclude: defaultExclude
|
||||
return result;
|
||||
},
|
||||
});
|
||||
|
||||
await Promise.all(
|
||||
Object.keys(flat).map(async (key) => {
|
||||
flat[key] = await flat[key];
|
||||
if (flat[key] === undefined) {
|
||||
delete flat[key];
|
||||
flat[key] = null;
|
||||
}
|
||||
return flat[key];
|
||||
}),
|
||||
);
|
||||
|
||||
const result = unflatten(flat);
|
||||
return result;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user