relationAuth的一个笔误

This commit is contained in:
Xu Chang 2023-06-26 10:39:12 +08:00
parent 4b17b7a710
commit 0abaf389a5
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ var RelationAuth = /** @class */ (function () {
}
else if (rel === 1 && anchors.length === 0) {
// 只寻找highest的有更深的就忽略掉浅的
if (attr === 'entity' && pathGroup[filter.attr]) {
if (attr === 'entity' && pathGroup[filter.entity]) {
var nextPath = path ? "".concat(path, ".").concat(filter.entity) : filter.entity;
if (filter.entityId) {
anchorsOnMe.push({

View File

@ -98,7 +98,7 @@ export class RelationAuth<ED extends EntityDict & BaseEntityDict>{
}
else if (rel === 1 && anchors.length === 0) {
// 只寻找highest的有更深的就忽略掉浅的
if (attr === 'entity' && pathGroup[filter.attr]) {
if (attr === 'entity' && pathGroup[filter.entity]) {
const nextPath = path ? `${path}.${filter.entity as string}` : filter.entity;
if (filter.entityId) {
anchorsOnMe.push({