This commit is contained in:
parent
f1d9831055
commit
da75287882
1 changed files with 5 additions and 5 deletions
|
|
@ -2003,7 +2003,7 @@ export class PositionController extends Controller {
|
|||
posMaster.orgChild3Id == null
|
||||
) {
|
||||
body.type = 0;
|
||||
shortName = posMaster.orgRoot.orgRootShortName;
|
||||
shortName = posMaster.orgRoot?.orgRootShortName;
|
||||
} else if (
|
||||
posMaster.orgRootId !== null &&
|
||||
posMaster.orgChild1Id !== null &&
|
||||
|
|
@ -2011,7 +2011,7 @@ export class PositionController extends Controller {
|
|||
posMaster.orgChild3Id == null
|
||||
) {
|
||||
body.type = 1;
|
||||
shortName = posMaster.orgChild1.orgChild1ShortName;
|
||||
shortName = posMaster.orgChild1?.orgChild1ShortName;
|
||||
} else if (
|
||||
posMaster.orgRootId !== null &&
|
||||
posMaster.orgChild1Id !== null &&
|
||||
|
|
@ -2019,7 +2019,7 @@ export class PositionController extends Controller {
|
|||
posMaster.orgChild3Id == null
|
||||
) {
|
||||
body.type = 2;
|
||||
shortName = posMaster.orgChild2.orgChild2ShortName;
|
||||
shortName = posMaster.orgChild2?.orgChild2ShortName;
|
||||
} else if (
|
||||
posMaster.orgRootId !== null &&
|
||||
posMaster.orgChild1Id !== null &&
|
||||
|
|
@ -2027,7 +2027,7 @@ export class PositionController extends Controller {
|
|||
posMaster.orgChild3Id !== null
|
||||
) {
|
||||
body.type = 3;
|
||||
shortName = posMaster.orgChild3.orgChild3ShortName;
|
||||
shortName = posMaster.orgChild3?.orgChild3ShortName;
|
||||
} else if (
|
||||
posMaster.orgRootId !== null &&
|
||||
posMaster.orgChild1Id !== null &&
|
||||
|
|
@ -2035,7 +2035,7 @@ export class PositionController extends Controller {
|
|||
posMaster.orgChild3Id !== null
|
||||
) {
|
||||
body.type = 4;
|
||||
shortName = posMaster.orgChild4.orgChild4ShortName;
|
||||
shortName = posMaster.orgChild4?.orgChild4ShortName;
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue