fix(block-provider): getNesterAppends filter fix (#1839)
* fix: getNesterAppends filter bug * fix: associationSelect
This commit is contained in:
parent
f8fa36d016
commit
a7dcbf4288
@ -1097,7 +1097,7 @@ export const useAssociationNames = (collection) => {
|
||||
}, new Schema({}));
|
||||
|
||||
const getAssociationAppends = (schema, arr = []) => {
|
||||
return schema.reduceProperties((buf, s) => {
|
||||
const data = schema.reduceProperties((buf, s) => {
|
||||
const collectionfield = s['x-collection-field'] && getCollectionJoinField(s['x-collection-field']);
|
||||
if (
|
||||
collectionfield &&
|
||||
@ -1121,7 +1121,9 @@ export const useAssociationNames = (collection) => {
|
||||
}
|
||||
}
|
||||
}, arr);
|
||||
return data || [];
|
||||
};
|
||||
|
||||
function flattenNestedList(nestedList) {
|
||||
const flattenedList = [];
|
||||
function flattenHelper(list, prefix) {
|
||||
|
@ -74,7 +74,7 @@ const InternalAssociationSelect = observer((props: AssociationSelectProps) => {
|
||||
</Input.Group>
|
||||
|
||||
<ActionContext.Provider value={{ openMode: 'drawer', visible: visibleAddNewer, setVisible: setVisibleAddNewer }}>
|
||||
<CollectionProvider name={collectionField.target}>
|
||||
<CollectionProvider name={collectionField?.target}>
|
||||
<RecursionField
|
||||
onlyRenderProperties
|
||||
basePath={field.address}
|
||||
|
Loading…
Reference in New Issue
Block a user