From 171e6c21351d3046324344cc809b2e457dfd2f1f Mon Sep 17 00:00:00 2001 From: Brian Goad Date: Thu, 10 Nov 2022 08:31:19 -0500 Subject: [PATCH] Fixes #5218, where nested environment variables on a sub environment don't always work (#5219) --- packages/insomnia/src/common/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/insomnia/src/common/render.ts b/packages/insomnia/src/common/render.ts index 24eb2d2cc..a77c405bd 100644 --- a/packages/insomnia/src/common/render.ts +++ b/packages/insomnia/src/common/render.ts @@ -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];