object check

This commit is contained in:
Yurii
2026-03-05 14:11:15 +02:00
parent 8c6eb518d8
commit 82c7c697e6
@@ -175,8 +175,12 @@ export default class LinkManagerEditParamsModalView extends ModalView {
return false; return false;
} }
const isObject = this.getMetadata().get(`scopes.${this.foreignEntityType}.object`) && if (
!this.systemEntityTypeList.includes(this.foreignEntityType); !this.getMetadata().get(`scopes.${this.foreignEntityType}.object`) ||
this.systemEntityTypeList.includes(this.foreignEntityType)
) {
return false;
}
return ['hasChildren', 'hasOne'].includes(this.type) || return ['hasChildren', 'hasOne'].includes(this.type) ||
(this.type === 'belongsTo' && this.foreignType === 'hasOne') || (this.type === 'belongsTo' && this.foreignType === 'hasOne') ||