We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 976cdf3 commit 1ff1389Copy full SHA for 1ff1389
packages/core/injector/injector.ts
@@ -778,7 +778,7 @@ export class Injector {
778
inquirer?: InstanceWrapper,
779
parentInquirer?: InstanceWrapper,
780
): Promise<any[]> {
781
- const hosts = await Promise.all(
+ const hosts: Array<InstanceWrapper<any> | undefined> = await Promise.all(
782
metadata.map(async item =>
783
this.resolveScopedComponentHost(
784
item,
@@ -791,7 +791,7 @@ export class Injector {
791
const inquirerId = this.getInquirerId(inquirer);
792
return hosts.map(
793
item =>
794
- item.getInstanceByContextId(
+ item?.getInstanceByContextId(
795
this.getContextId(contextId, item),
796
inquirerId,
797
).instance,
0 commit comments