fix: appends

This commit is contained in:
chenos 2022-03-12 00:06:12 +08:00
parent 9036eee80b
commit db26c64aa2

View File

@ -34,7 +34,10 @@ const CollectionResourceActionProvider = (props) => {
params: {
...others,
...request?.params,
appends: collection.fields.filter((field) => field.target).map((field) => field.name),
appends: [
...collection?.fields?.filter?.((field) => field.target).map((field) => field.name),
...request?.params?.appends,
],
sort: dragSort ? [collection.sortable === true ? 'sort' : collection.sortable] : request?.params?.sort,
},
},