fix: field for attachment interface type without appends (#1856)
* fix: attachment without appends * fix: association fields appends
This commit is contained in:
parent
83749ccd53
commit
d2e92ead7f
@ -1101,10 +1101,7 @@ export const useAssociationNames = (collection) => {
|
|||||||
const data = schema.reduceProperties((buf, s) => {
|
const data = schema.reduceProperties((buf, s) => {
|
||||||
const collectionfield =
|
const collectionfield =
|
||||||
getField(s.name) || (s['x-collection-field'] && getCollectionJoinField(s['x-collection-field']));
|
getField(s.name) || (s['x-collection-field'] && getCollectionJoinField(s['x-collection-field']));
|
||||||
if (
|
if (collectionfield && ['hasOne', 'hasMany', 'belongsTo', 'belongsToMany'].includes(collectionfield.type)) {
|
||||||
collectionfield &&
|
|
||||||
['createdBy', 'updatedBy', 'o2m', 'obo', 'oho', 'm2o', 'm2m'].includes(collectionfield.interface)
|
|
||||||
) {
|
|
||||||
if (['Nester', 'SubTable'].includes(s['x-component-props']?.mode)) {
|
if (['Nester', 'SubTable'].includes(s['x-component-props']?.mode)) {
|
||||||
associationValues.push(s.name);
|
associationValues.push(s.name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user