Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
killagu committed Sep 29, 2024
1 parent b12348d commit 292b5ff
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions core/runtime/src/impl/EggObjectImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,15 @@ export default class EggObjectImpl implements EggObject {
return EggObjectUtil.eggObjectProxy(injectObj);
}));
if (typeof this.proto.multiInstanceConstructorIndex !== 'undefined') {
const qualifiers = this.proto.multiInstanceConstructorAttributes?.map(t => {
return {
attribute: t,
value: this.proto.getQualifier(t),
} as QualifierInfo;
}) ?? [];
const qualifiers = this.proto.multiInstanceConstructorAttributes
?.map(t => {
return {
attribute: t,
value: this.proto.getQualifier(t),
} as QualifierInfo;
})
?.filter(t => typeof t.value !== 'undefined')
?? [];
const objInfo: ObjectInfo = {
name: this.proto.name,
qualifiers,
Expand Down

0 comments on commit 292b5ff

Please sign in to comment.