diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index d8fde6d6..29864017 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -1435,6 +1435,7 @@ export class ProfileController extends Controller { id: Not(posMaster.current_holderId), }; if (posMaster.orgChild1Id == null) { + condition.orgRootId = null; } else if (posMaster.orgChild2Id == null) { condition.orgChild1Id = null; } else if (posMaster.orgChild3Id == null) { @@ -1526,6 +1527,7 @@ export class ProfileController extends Controller { id: Not(posMaster.current_holderId), }; if (posMaster.orgChild1Id == null) { + condition.orgRootId = null; } else if (posMaster.orgChild2Id == null) { condition.orgChild1Id = null; } else if (posMaster.orgChild3Id == null) {