Skip to content

Commit

Permalink
fix(core): fix lazy loading nested modules #8031
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Sep 30, 2021
1 parent 7dd2275 commit 7643041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/injector/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class NestContainer {
metatype,
);
if (this.modules.has(token)) {
return;
return this.modules.get(token);
}
const moduleRef = new Module(type, this);
moduleRef.token = token;
Expand Down

0 comments on commit 7643041

Please sign in to comment.