fix: getNesterAppends filter bug

This commit is contained in:
katherinehhh 2023-05-11 13:58:50 +08:00
parent a6c7b417de
commit c785beb865

View File

@ -1146,7 +1146,7 @@ export const useAssociationNames = (collection) => {
}, data);
return data.filter((g) => g.length);
};
const data = getAssociationAppends(formSchema);
const data = getAssociationAppends(formSchema)||[];
const associations = data.filter((g) => g.length);
const appends = flattenNestedList(associations);
return { appends, updateAssociationValues: appends.filter((v) => associationValues.includes(v)) };