Fixes #5218, where nested environment variables on a sub environment don't always work (#5219)

This commit is contained in:
Brian Goad 2022-11-10 08:31:19 -05:00 committed by GitHub
parent cc3a7cbbda
commit 171e6c2135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ export async function buildRenderContext(
}
} else if (Object.prototype.toString.call(subContext[key]) === '[object Object]') {
// Context is of Type object, Call this function recursively to handle nested objects.
subContext[key] = renderSubContext(subObject[key], subContext[key]);
subContext[key] = await renderSubContext(subObject[key], subContext[key]);
} else {
// For all other Types, add the Object to the Context.
subContext[key] = subObject[key];