From fcc8bee4c75db0ef20ca2fc6e8558cb4f0f9ba2d Mon Sep 17 00:00:00 2001 From: Hexxa Date: Tue, 30 Apr 2024 16:47:41 +0800 Subject: [PATCH] fix: subEnvironment's id should be real id instead of n/a (#7339) --- 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 d3aed7997c3..e30f8724b8b 100644 --- a/packages/insomnia/src/common/render.ts +++ b/packages/insomnia/src/common/render.ts @@ -330,7 +330,7 @@ export async function getRenderContext( workspace ? workspace._id : 'n/a', ); const subEnvironmentId = environment ? - typeof environment === 'string' ? environment : 'n/a' : + typeof environment === 'string' ? environment : environment._id : 'n/a'; const subEnvironment = environment ? typeof environment === 'string' ? await models.environment.getById(environment) : environment :