fix: subEnvironment's id should be real id instead of n/a (#7339)

This commit is contained in:
Hexxa 2024-04-30 16:47:41 +08:00 committed by GitHub
parent c90b82c863
commit fcc8bee4c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 :