diff --git a/packages/classes/src/lib/utils/instantiate.util.ts b/packages/classes/src/lib/utils/instantiate.util.ts index 5b4d640ae..e87d04596 100644 --- a/packages/classes/src/lib/utils/instantiate.util.ts +++ b/packages/classes/src/lib/utils/instantiate.util.ts @@ -67,13 +67,13 @@ export function instantiate>( if (Array.isArray(valueAtKey)) { // loop through each value and recursively call instantiate with each value instance[key] = valueAtKey.map((val) => { - const [instantiateResult] = instantiate( + const [instantiateResultItem] = instantiate( instanceStorage, metadataStorage, metaResult as Constructible, val ); - return instantiateResult; + return instantiateResultItem; }); continue; }