fix(接口测试): 场景调试偶发环境丢失问题

--bug=1014467 --user=赵勇 【接口测试】【偶发】github#15273,接口场景自动化调试问题 https://www.tapd.cn/55049933/s/1193088
This commit is contained in:
fit2-zhao 2022-07-01 14:08:08 +08:00 committed by f2c-ci-robot[bot]
parent fd03d70bdf
commit 72af8e7bd0
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ export function editApiScenarioCaseOrder(request, callback) {
}
export function savePreciseEnvProjectIds(projectIds, envMap) {
if (envMap != null && projectIds != null) {
if (envMap != null && projectIds && projectIds.length > 0) {
let keys = envMap.keys();
for (let key of keys) {
if (!projectIds.has(key)) {